Skip to content

Commit 57051e8

Browse files
committed
Draggable tests: Don't use .on().
1 parent 8b1b34c commit 57051e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/draggable/draggable_test_helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ TestHelpers.draggable = {
6060

6161
},
6262
trackMouseCss : function( el ) {
63-
el.on( "drag", function() {
63+
el.bind( "drag", function() {
6464
el.data( "last_dragged_cursor", $("body").css("cursor") );
6565
});
6666
},
@@ -69,7 +69,7 @@ TestHelpers.draggable = {
6969
// appendTo ignored without being clone
7070
el.draggable( "option", "helper", "clone" );
7171

72-
el.on( "drag", function(e,ui) {
72+
el.bind( "drag", function(e,ui) {
7373
// Get what parent is at time of drag
7474
el.data( "last_dragged_parent", ui.helper.parent()[0] );
7575
});

0 commit comments

Comments
 (0)