Updated test for default position option: Reference using-implementation, as QUnit compares functions only by reference

This commit is contained in:
jzaefferer 2010-07-15 09:31:36 +02:00
parent 6b36499c71
commit 56aecac811

View File

@ -22,13 +22,7 @@ var dialog_defaults = {
at: 'center',
of: window,
collision: 'fit',
// ensure that the titlebar is never outside the document
using: function(pos) {
var topOffset = $(this).css(pos).offset().top;
if (topOffset < 0) {
$(this).css('top', pos.top - topOffset);
}
}
using: $.ui.dialog.prototype.options.position.using
},
resizable: true,
show: null,