Skip to content

Commit

Permalink
Draggable tests: Wrap IIFE in parens.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Apr 8, 2013
1 parent b8efbd6 commit d7ea0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/draggable/draggable_test_helpers.js
Expand Up @@ -2,10 +2,10 @@ TestHelpers.draggable = {
// TODO: remove the unreliable offset hacks
unreliableOffset: $.ui.ie && ( !document.documentMode || document.documentMode < 8 ) ? 2 : 0,
// Support: Opera 12.10, Safari 5.1, jQuery <1.8
unreliableContains: function(){
unreliableContains: (function(){
var element = $( "<div>" );
return $.contains( element[ 0 ].ownerDocument, element[ 0 ] );
}(),
})(),
testDrag: function( el, handle, dx, dy, expectedDX, expectedDY, msg ) {
var offsetAfter, actual, expected,
offsetBefore = el.offset();
Expand Down

0 comments on commit d7ea0e5

Please sign in to comment.