aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/droppable/options.js6
1 files changed, 3 insertions, 3 deletions
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" );
});