]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable tests: Don't use .on().
authorScott González <scott.gonzalez@gmail.com>
Sat, 9 Mar 2013 13:12:31 +0000 (08:12 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sat, 9 Mar 2013 13:12:47 +0000 (08:12 -0500)
tests/unit/draggable/draggable_test_helpers.js

index e1c79c6cc3ffa25cc92a9fcf1c03b7afdbb680b5..44e37c55961251603d846afed9a07804a6e01e85 100644 (file)
@@ -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] );
                });