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 /ui | |
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 'ui')
-rw-r--r-- | ui/autocomplete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/autocomplete.js b/ui/autocomplete.js index a3db1a9f8..8c8ce2b68 100644 --- a/ui/autocomplete.js +++ b/ui/autocomplete.js @@ -233,7 +233,7 @@ $.widget( "ui.autocomplete", { // we restore focus to ensure that the menu closes properly based on the user's // next actions. if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) { - this.element.focus(); + this.element.trigger( "focus" ); } } ); @@ -262,7 +262,7 @@ $.widget( "ui.autocomplete", { if ( this.isNewMenu ) { this.isNewMenu = false; if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) { - this.menu.blur(); + this.menu.trigger( "blur" ); this.document.one( "mousemove", function() { $( event.target ).trigger( event.originalEvent ); @@ -293,7 +293,7 @@ $.widget( "ui.autocomplete", { // only trigger when focus was lost (click on menu) if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) { - this.element.focus(); + this.element.trigger( "focus" ); this.previous = previous; // #6109 - IE triggers two focus events and the second // is asynchronous, so we need to reset the previous |