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