aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-13 08:00:45 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-13 08:00:45 -0400
commit9608e981498846b3727cc4dad723a7fa7252fd86 (patch)
tree591ab885bf28ef77be87b2121fe9ecb461e7358f /ui/jquery.ui.menu.js
parente8b623207abcae500ffb3860378543906cd4e2b2 (diff)
downloadjquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.tar.gz
jquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.zip
Widget: Rename _bind() to _on(). Partial fix for #7795 - Widget: _on and _off.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 986cca168..eb0be494c 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -43,7 +43,7 @@ $.widget( "ui.menu", {
tabIndex: 0
})
// need to catch all clicks on disabled menu
- // not possible through _bind
+ // not possible through _on
.bind( "click.menu", $.proxy(function( event ) {
if ( this.options.disabled ) {
event.preventDefault();
@@ -56,7 +56,7 @@ $.widget( "ui.menu", {
.attr( "aria-disabled", "true" );
}
- this._bind({
+ this._on({
// Prevent focus from sticking to links inside menu after clicking
// them (focus should always stay on UL during navigation).
"mousedown .ui-menu-item > a": function( event ) {
@@ -122,8 +122,7 @@ $.widget( "ui.menu", {
this.refresh();
// TODO: We probably shouldn't bind to document for each menu.
- // TODO: This isn't being cleaned up on destroy.
- this._bind( this.document, {
+ this._on( this.document, {
click: function( event ) {
if ( !$( event.target ).closest( ".ui-menu" ).length ) {
this.collapseAll( event );