Skip to content

Commit d5df3a5

Browse files
committed
Menu: make the move method private
1 parent 2360af2 commit d5df3a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ $.widget("ui.menu", {
147147
},
148148

149149
next: function(event) {
150-
this.move("next", ".ui-menu-item:first", event);
150+
this._move("next", ".ui-menu-item:first", event);
151151
},
152152

153153
previous: function(event) {
154-
this.move("prev", ".ui-menu-item:last", event);
154+
this._move("prev", ".ui-menu-item:last", event);
155155
},
156156

157157
first: function() {
@@ -162,7 +162,7 @@ $.widget("ui.menu", {
162162
return this.active && !this.active.next().length;
163163
},
164164

165-
move: function(direction, edge, event) {
165+
_move: function(direction, edge, event) {
166166
if (!this.active) {
167167
this.activate(event, this.element.children(edge));
168168
return;

0 commit comments

Comments
 (0)