aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-04-08 14:45:09 -0400
committerScott González <scott.gonzalez@gmail.com>2013-04-08 14:45:09 -0400
commitd7ea0e5e519da8be0eed08a0db07f752114b752a (patch)
treea211af92bc78a185133c3b89008f3baf99896f6f /tests/unit
parentb8efbd6c07ebcab2f2165033fcea9ded1b9a07a2 (diff)
downloadjquery-ui-d7ea0e5e519da8be0eed08a0db07f752114b752a.tar.gz
jquery-ui-d7ea0e5e519da8be0eed08a0db07f752114b752a.zip
Draggable tests: Wrap IIFE in parens.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/draggable/draggable_test_helpers.js4
1 files 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 = $( "<div>" );
return $.contains( element[ 0 ].ownerDocument, element[ 0 ] );
- }(),
+ })(),
testDrag: function( el, handle, dx, dy, expectedDX, expectedDY, msg ) {
var offsetAfter, actual, expected,
offsetBefore = el.offset();