From 8b4ce807cd97e3cb953995934d6c4f614de9fa03 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 21:54:08 -0400 Subject: Autocomplete: Remove core event/alias and deprecated module dependencies --- ui/autocomplete.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') 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 -- cgit v1.2.3