aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-03-09 08:12:31 -0500
committerScott González <scott.gonzalez@gmail.com>2013-03-09 08:12:47 -0500
commit57051e8a7323e27fe159e5448b52666f1bdbc409 (patch)
tree87b4d21bb7399dc5e02c664f082bc3edd4747933
parent8b1b34c5c3e8fae056f0880776156dc003b5e2c3 (diff)
downloadjquery-ui-57051e8a7323e27fe159e5448b52666f1bdbc409.tar.gz
jquery-ui-57051e8a7323e27fe159e5448b52666f1bdbc409.zip
Draggable tests: Don't use .on().
-rw-r--r--tests/unit/draggable/draggable_test_helpers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/draggable/draggable_test_helpers.js b/tests/unit/draggable/draggable_test_helpers.js
index e1c79c6cc..44e37c559 100644
--- a/tests/unit/draggable/draggable_test_helpers.js
+++ b/tests/unit/draggable/draggable_test_helpers.js
@@ -60,7 +60,7 @@ TestHelpers.draggable = {
},
trackMouseCss : function( el ) {
- el.on( "drag", function() {
+ el.bind( "drag", function() {
el.data( "last_dragged_cursor", $("body").css("cursor") );
});
},
@@ -69,7 +69,7 @@ TestHelpers.draggable = {
// appendTo ignored without being clone
el.draggable( "option", "helper", "clone" );
- el.on( "drag", function(e,ui) {
+ el.bind( "drag", function(e,ui) {
// Get what parent is at time of drag
el.data( "last_dragged_parent", ui.helper.parent()[0] );
});