diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 21:54:08 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:55 -0400 |
commit | 8b4ce807cd97e3cb953995934d6c4f614de9fa03 (patch) | |
tree | c75ff8ea4984536656668ad35f463d0601e4429b /demos | |
parent | b240eed81b96c9c4128ca5682d876fbc6f96a9c4 (diff) | |
download | jquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.tar.gz jquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.zip |
Autocomplete: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos')
-rw-r--r-- | demos/autocomplete/combobox.html | 8 | ||||
-rw-r--r-- | demos/autocomplete/multiple-remote.html | 2 | ||||
-rw-r--r-- | demos/autocomplete/multiple.html | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index f8898094d..76d792470 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -92,11 +92,11 @@ }) .removeClass( "ui-corner-all" ) .addClass( "custom-combobox-toggle ui-corner-right" ) - .mousedown(function() { + .on( "mousedown", function() { wasOpen = input.autocomplete( "widget" ).is( ":visible" ); }) - .click(function() { - input.focus(); + .on( "click", function() { + input.trigger( "focus" ); // Close if already visible if ( wasOpen ) { @@ -165,7 +165,7 @@ $(function() { $( "#combobox" ).combobox(); - $( "#toggle" ).click(function() { + $( "#toggle" ).on( "click", function() { $( "#combobox" ).toggle(); }); }); diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html index 72c001754..45f319865 100644 --- a/demos/autocomplete/multiple-remote.html +++ b/demos/autocomplete/multiple-remote.html @@ -27,7 +27,7 @@ $( "#birds" ) // don't navigate away from the field on tab when selecting an item - .bind( "keydown", function( event ) { + .on( "keydown", function( event ) { if ( event.keyCode === $.ui.keyCode.TAB && $( this ).autocomplete( "instance" ).menu.active ) { event.preventDefault(); diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html index 63d379067..1bd70f228 100644 --- a/demos/autocomplete/multiple.html +++ b/demos/autocomplete/multiple.html @@ -46,7 +46,7 @@ $( "#tags" ) // don't navigate away from the field on tab when selecting an item - .bind( "keydown", function( event ) { + .on( "keydown", function( event ) { if ( event.keyCode === $.ui.keyCode.TAB && $( this ).autocomplete( "instance" ).menu.active ) { event.preventDefault(); |