aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-30 13:18:34 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-30 13:18:34 +0200
commitadf19a18497a3baa3c7df1d8435998d79897182a (patch)
treec5cd00d79580c91fe183c5be5c528a54f9fae25b /ui
parentabfdb2a8b6f93607c0791ba91ab616aed6b04772 (diff)
downloadjquery-ui-adf19a18497a3baa3c7df1d8435998d79897182a.tar.gz
jquery-ui-adf19a18497a3baa3c7df1d8435998d79897182a.zip
Renamed menu event selected to select to be consistent with naming conventions, already updated spec on wiki
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.autocomplete.js2
-rw-r--r--ui/jquery.ui.menu.js2
2 files changed, 2 insertions, 2 deletions
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 });
}
});