File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,6 @@ $.widget( "ui.menubar", {
168
168
clearTimeout ( that . closeTimer ) ;
169
169
}
170
170
} ) ;
171
-
172
- // Keep track of open submenus
173
- this . openSubmenus = 0 ;
174
171
} ,
175
172
176
173
_destroy : function ( ) {
@@ -221,7 +218,6 @@ $.widget( "ui.menubar", {
221
218
. removeAttr ( "tabIndex" ) ;
222
219
this . active = null ;
223
220
this . open = false ;
224
- this . openSubmenus = 0 ;
225
221
} ,
226
222
227
223
_open : function ( event , menu ) {
@@ -259,22 +255,10 @@ $.widget( "ui.menubar", {
259
255
} ,
260
256
261
257
next : function ( event ) {
262
- if ( this . open && this . active . data ( "menu" ) . active . has ( ".ui-menu" ) . length ) {
263
- // Track number of open submenus and prevent moving to next menubar item
264
- this . openSubmenus ++ ;
265
- return ;
266
- }
267
- this . openSubmenus = 0 ;
268
258
this . _move ( "next" , "first" , event ) ;
269
259
} ,
270
260
271
261
previous : function ( event ) {
272
- if ( this . open && this . openSubmenus ) {
273
- // Track number of open submenus and prevent moving to previous menubar item
274
- this . openSubmenus -- ;
275
- return ;
276
- }
277
- this . openSubmenus = 0 ;
278
262
this . _move ( "prev" , "last" , event ) ;
279
263
} ,
280
264
You can’t perform that action at this time.
0 commit comments