mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable tests: Wrap IIFE in parens.
This commit is contained in:
parent
b8efbd6c07
commit
d7ea0e5e51
@ -2,10 +2,10 @@ TestHelpers.draggable = {
|
|||||||
// TODO: remove the unreliable offset hacks
|
// TODO: remove the unreliable offset hacks
|
||||||
unreliableOffset: $.ui.ie && ( !document.documentMode || document.documentMode < 8 ) ? 2 : 0,
|
unreliableOffset: $.ui.ie && ( !document.documentMode || document.documentMode < 8 ) ? 2 : 0,
|
||||||
// Support: Opera 12.10, Safari 5.1, jQuery <1.8
|
// Support: Opera 12.10, Safari 5.1, jQuery <1.8
|
||||||
unreliableContains: function(){
|
unreliableContains: (function(){
|
||||||
var element = $( "<div>" );
|
var element = $( "<div>" );
|
||||||
return $.contains( element[ 0 ].ownerDocument, element[ 0 ] );
|
return $.contains( element[ 0 ].ownerDocument, element[ 0 ] );
|
||||||
}(),
|
})(),
|
||||||
testDrag: function( el, handle, dx, dy, expectedDX, expectedDY, msg ) {
|
testDrag: function( el, handle, dx, dy, expectedDX, expectedDY, msg ) {
|
||||||
var offsetAfter, actual, expected,
|
var offsetAfter, actual, expected,
|
||||||
offsetBefore = el.offset();
|
offsetBefore = el.offset();
|
||||||
|
Loading…
Reference in New Issue
Block a user