]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Use .bind() instead of .on()
authorScott González <scott.gonzalez@gmail.com>
Tue, 11 Feb 2014 19:54:34 +0000 (11:54 -0800)
committerScott González <scott.gonzalez@gmail.com>
Tue, 11 Feb 2014 19:54:55 +0000 (11:54 -0800)
tests/unit/autocomplete/autocomplete_core.js
tests/visual/position/position_feedback.html
tests/visual/selectmenu/selectmenu.html

index 81d534cb80043f17ca9d5d6c02acf29e9265da75..2a901006bcf0bd2a467115d8b729853ef5efdd9d 100644 (file)
@@ -154,7 +154,7 @@ test( "allow form submit on enter when menu is not active", function() {
                                delay: 0,
                                minLength: 0
                        });
-               element.on( "keypress", function( e ) {
+               element.bind( "keypress", function( e ) {
                        didMove = !e.isDefaultPrevented();
                });
                element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } );
index 847bbf2ef6ddf617cad92ad0ebc2997976ea1a49..00b1f65ee4c7317dc9dccdd899ba151f88dad0f5 100644 (file)
@@ -64,7 +64,7 @@
                                using: using
                        };
                };
-               $( document ).on( "mousemove", function( event ) {
+               $( document ).bind( "mousemove", function( event ) {
                        element.position( positionWithOffset(
                                event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
                        oppositeElement.position( positionWithOffset(
index b492ccd8f9bf0239ddcc5ca906478b774e3b7c94..e6041ea678a82236c64e751ff95972d89a5c778d 100644 (file)
@@ -70,7 +70,7 @@
                $('#disabled1, #disabled2, #disabled3').selectmenu();
                var disabled4 = $('#disabled4').selectmenu();
 
-               $("#disable_select").on("click", function() {
+               $("#disable_select").bind("click", function() {
                        if (disable_select) {
                                disable_select = false;
                                disabled4.selectmenu("disable");
@@ -82,7 +82,7 @@
                        return false;
                });
 
-               $("#disable_option").on("click", function() {
+               $("#disable_option").bind("click", function() {
                        if (disable_option) {
                                disable_option = false;
                                disabled4.find("option:eq(0)").attr("disabled", "disabled");
@@ -94,7 +94,7 @@
                        return false;
                });
 
-               $("#disable_optgroup").on("click", function() {
+               $("#disable_optgroup").bind("click", function() {
                        if (disable_optgroup) {
                                disable_optgroup = false;
                                disabled4.find("optgroup:eq(0)").attr("disabled", "disabled");