From adf19a18497a3baa3c7df1d8435998d79897182a Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Fri, 30 Apr 2010 13:18:34 +0200 Subject: Renamed menu event selected to select to be consistent with naming conventions, already updated spec on wiki --- ui/jquery.ui.autocomplete.js | 2 +- ui/jquery.ui.menu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index b4176c038..bd55c1ed4 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -115,7 +115,7 @@ $.widget( "ui.autocomplete", { } } }, - selected: function( event, ui ) { + select: function( event, ui ) { var item = ui.item.data( "item.autocomplete" ); if ( false !== self._trigger( "select", event, { item: item } ) ) { self.element.val( item.value ); diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index b8e1fd410..895a6a806 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -208,7 +208,7 @@ $.widget("ui.menu", { }, select: function( event ) { - this._trigger("selected", event, { item: this.active }); + this._trigger("select", event, { item: this.active }); } }); -- cgit v1.2.3