aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/combobox.html
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-05-13 21:54:08 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-05-20 14:27:55 -0400
commit8b4ce807cd97e3cb953995934d6c4f614de9fa03 (patch)
treec75ff8ea4984536656668ad35f463d0601e4429b /demos/autocomplete/combobox.html
parentb240eed81b96c9c4128ca5682d876fbc6f96a9c4 (diff)
downloadjquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.tar.gz
jquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.zip
Autocomplete: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r--demos/autocomplete/combobox.html8
1 files changed, 4 insertions, 4 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();
});
});