From ef26587194efe66cea27d729fb9f06dcfe4b61a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 8 Apr 2013 14:45:09 -0400 Subject: [PATCH] Draggable tests: Wrap IIFE in parens. (cherry picked from commit d7ea0e5e519da8be0eed08a0db07f752114b752a) --- tests/unit/draggable/draggable_test_helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/draggable/draggable_test_helpers.js b/tests/unit/draggable/draggable_test_helpers.js index 0263f694c..b36505556 100644 --- a/tests/unit/draggable/draggable_test_helpers.js +++ b/tests/unit/draggable/draggable_test_helpers.js @@ -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 = $( "
" ); return $.contains( element[ 0 ].ownerDocument, element[ 0 ] ); - }(), + })(), testDrag: function( el, handle, dx, dy, expectedDX, expectedDY, msg ) { var offsetAfter, actual, expected, offsetBefore = el.offset(); -- 2.39.5