mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Menu: make the move method private
This commit is contained in:
parent
2360af22a8
commit
d5df3a5a56
6
ui/jquery.ui.menu.js
vendored
6
ui/jquery.ui.menu.js
vendored
@ -147,11 +147,11 @@ $.widget("ui.menu", {
|
||||
},
|
||||
|
||||
next: function(event) {
|
||||
this.move("next", ".ui-menu-item:first", event);
|
||||
this._move("next", ".ui-menu-item:first", event);
|
||||
},
|
||||
|
||||
previous: function(event) {
|
||||
this.move("prev", ".ui-menu-item:last", event);
|
||||
this._move("prev", ".ui-menu-item:last", event);
|
||||
},
|
||||
|
||||
first: function() {
|
||||
@ -162,7 +162,7 @@ $.widget("ui.menu", {
|
||||
return this.active && !this.active.next().length;
|
||||
},
|
||||
|
||||
move: function(direction, edge, event) {
|
||||
_move: function(direction, edge, event) {
|
||||
if (!this.active) {
|
||||
this.activate(event, this.element.children(edge));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user