]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable tests: Wrap IIFE in parens.
authorScott González <scott.gonzalez@gmail.com>
Mon, 8 Apr 2013 18:45:09 +0000 (14:45 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 17 Apr 2013 19:25:12 +0000 (15:25 -0400)
(cherry picked from commit d7ea0e5e519da8be0eed08a0db07f752114b752a)

tests/unit/draggable/draggable_test_helpers.js

index 0263f694cf5a8e5101ef09234050b52fdda9ca72..b365055568237fa9c9505d4a69af8b704184d7f0 100644 (file)
@@ -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();