From 35ef105430e1c3295cd18841ce2cf2a79b26d69a Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 21:58:16 -0400 Subject: Droppable: Remove core event/alias and deprecated module dependencies --- tests/unit/droppable/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/droppable') diff --git a/tests/unit/droppable/options.js b/tests/unit/droppable/options.js index f2d1757c2..c7c0dbdd6 100644 --- a/tests/unit/droppable/options.js +++ b/tests/unit/droppable/options.js @@ -134,7 +134,7 @@ test( "tolerance, intersect", function() { left: 0 }); - droppable.unbind( "drop" ).bind( "drop", function() { + droppable.off( "drop" ).on( "drop", function() { equal( true, data[ 2 ], data[ 3 ] ); }); @@ -173,7 +173,7 @@ test( "tolerance, pointer", function() { $.each( dataset, function() { var data = this; - droppable.unbind( "drop" ).bind( "drop", function() { + droppable.off( "drop" ).on( "drop", function() { equal( true, data[ 2 ], data[ 3 ] ); }); @@ -187,7 +187,7 @@ test( "tolerance, pointer", function() { draggable.css({ top: 0, left: 0 }).draggable( "option", "axis", "x" ); droppable.css({ top: 15, left: 15 }); - droppable.unbind( "drop" ).bind( "drop", function() { + droppable.off( "drop" ).on( "drop", function() { ok( true, "drop fires as long as pointer is within droppable" ); }); -- cgit v1.2.3