diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/draggable/core.js | 2 | ||||
-rw-r--r-- | tests/unit/draggable/helper.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/draggable/core.js b/tests/unit/draggable/core.js index 6e12b3521..802ed2928 100644 --- a/tests/unit/draggable/core.js +++ b/tests/unit/draggable/core.js @@ -116,7 +116,7 @@ test( "Stray mousemove after mousedown still drags", function() { // In IE8, when content is placed under the mouse (e.g. when draggable content is replaced // on mousedown), mousemove is triggered on those elements even though the mouse hasn't moved. // Support: IE <9 - element.bind( "mousedown", function() { + element.on( "mousedown", function() { $( document ).simulate( "mousemove", { button: -1 }); }); diff --git a/tests/unit/draggable/helper.js b/tests/unit/draggable/helper.js index 1858e187b..4af87d37f 100644 --- a/tests/unit/draggable/helper.js +++ b/tests/unit/draggable/helper.js @@ -84,7 +84,7 @@ return $.extend( helper, { element = $( el ), beginOffset = element.offset(); - element.bind( "dragstop", function() { + element.on( "dragstop", function() { ok( false, "should not drag " + msg ); }); @@ -100,7 +100,7 @@ return $.extend( helper, { equal( newOffset.left, beginOffset.left, "Offset left should not be different" ); equal( newOffset.top, beginOffset.top, "Offset top should not be different" ); - element.unbind( "dragstop" ); + element.off( "dragstop" ); }, setScrollable: function( what, isScrollable ) { @@ -139,7 +139,7 @@ return $.extend( helper, { }, trackMouseCss: function( el ) { - el.bind( "drag", function() { + el.on( "drag", function() { el.data( "last_dragged_cursor", $( "body" ).css( "cursor" ) ); }); }, @@ -149,7 +149,7 @@ return $.extend( helper, { el.draggable( "option", "helper", "clone" ); // Get what parent is at time of drag - el.bind( "drag", function(e, ui) { + el.on( "drag", function(e, ui) { el.data( "last_dragged_parent", ui.helper.parent()[ 0 ] ); }); } |