Skip to content

Commit

Permalink
Menu: make the move method private
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jun 19, 2010
1 parent 2360af2 commit d5df3a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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;
Expand Down

0 comments on commit d5df3a5

Please sign in to comment.