Skip to content

Commit 56aecac

Browse files
committed
Updated test for default position option: Reference using-implementation, as QUnit compares functions only by reference
1 parent 6b36499 commit 56aecac

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/unit/dialog/dialog_defaults.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ var dialog_defaults = {
2222
at: 'center',
2323
of: window,
2424
collision: 'fit',
25-
// ensure that the titlebar is never outside the document
26-
using: function(pos) {
27-
var topOffset = $(this).css(pos).offset().top;
28-
if (topOffset < 0) {
29-
$(this).css('top', pos.top - topOffset);
30-
}
31-
}
25+
using: $.ui.dialog.prototype.options.position.using
3226
},
3327
resizable: true,
3428
show: null,

0 commit comments

Comments
 (0)