diff options
author | kborchers <k_borchers@yahoo.com> | 2011-07-05 10:02:33 -0500 |
---|---|---|
committer | kborchers <k_borchers@yahoo.com> | 2011-07-05 10:02:33 -0500 |
commit | 5d2b6837612c0cf6195092c9b223a3a982e67fb5 (patch) | |
tree | 5d1203679d17b84df972c28f2941bd60df91d6a3 /ui/jquery.ui.menu.js | |
parent | ab627e03a6a37cbf3291e9600f5482bd50991360 (diff) | |
download | jquery-ui-5d2b6837612c0cf6195092c9b223a3a982e67fb5.tar.gz jquery-ui-5d2b6837612c0cf6195092c9b223a3a982e67fb5.zip |
Menu: Changed left and right methods to collapse and expand respectively.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 7dd1a9ce0..b93c95531 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -98,20 +98,20 @@ $.widget( "ui.menu", { event.stopImmediatePropagation(); break; case $.ui.keyCode.LEFT: - if (self.left( event )) { + if (self.collapse( event )) { event.stopImmediatePropagation(); } event.preventDefault(); break; case $.ui.keyCode.RIGHT: - if (self.right( event )) { + if (self.expand( event )) { event.stopImmediatePropagation(); } event.preventDefault(); break; case $.ui.keyCode.ENTER: if ( self.active.children( "a[aria-haspopup='true']" ).length ) { - if ( self.right( event ) ) { + if ( self.expand( event ) ) { event.stopImmediatePropagation(); } } @@ -122,7 +122,7 @@ $.widget( "ui.menu", { event.preventDefault(); break; case $.ui.keyCode.ESCAPE: - if ( self.left( event ) ) { + if ( self.collapse( event ) ) { event.stopImmediatePropagation(); } event.preventDefault(); @@ -344,7 +344,7 @@ $.widget( "ui.menu", { .removeClass( "ui-state-active" ); }, - left: function( event ) { + collapse: function( event ) { var newItem = this.active && this.active.parents("li:not(.ui-menubar-item)").first(); if ( newItem && newItem.length ) { this.active.parent() @@ -356,7 +356,7 @@ $.widget( "ui.menu", { } }, - right: function( event ) { + expand: function( event ) { var self = this, newItem = this.active && this.active.children("ul").children("li").first(); |