File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ $.widget( "ui.menu", {
176
176
this . _bind ( document , {
177
177
click : function ( event ) {
178
178
if ( ! $ ( event . target ) . closest ( ".ui-menu" ) . length ) {
179
- this . closeAll ( ) ;
179
+ this . collapseAll ( ) ;
180
180
}
181
181
}
182
182
} ) ;
@@ -336,7 +336,7 @@ $.widget( "ui.menu", {
336
336
. position ( position ) ;
337
337
} ,
338
338
339
- closeAll : function ( ) {
339
+ collapseAll : function ( ) {
340
340
this . element
341
341
. find ( "ul" )
342
342
. hide ( )
@@ -466,11 +466,11 @@ $.widget( "ui.menu", {
466
466
} ,
467
467
468
468
select : function ( event ) {
469
- // save active reference before closeAll triggers blur
469
+ // save active reference before collapseAll triggers blur
470
470
var ui = {
471
471
item : this . active
472
472
} ;
473
- this . closeAll ( ) ;
473
+ this . collapseAll ( ) ;
474
474
this . _trigger ( "select" , event , ui ) ;
475
475
}
476
476
} ) ;
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ $.widget( "ui.menubar", {
151
151
} ) ;
152
152
that . _bind ( {
153
153
keydown : function ( event ) {
154
- if ( event . keyCode == $ . ui . keyCode . ESCAPE && that . active && that . active . menu ( "left " , event ) !== true ) {
154
+ if ( event . keyCode == $ . ui . keyCode . ESCAPE && that . active && that . active . menu ( "collapse " , event ) !== true ) {
155
155
var active = that . active ;
156
156
that . active . blur ( ) ;
157
157
that . _close ( event ) ;
@@ -206,7 +206,7 @@ $.widget( "ui.menubar", {
206
206
if ( ! this . active || ! this . active . length )
207
207
return ;
208
208
this . active
209
- . menu ( "closeAll " )
209
+ . menu ( "collapseAll " )
210
210
. hide ( )
211
211
. attr ( "aria-hidden" , "true" )
212
212
. attr ( "aria-expanded" , "false" ) ;
@@ -226,7 +226,7 @@ $.widget( "ui.menubar", {
226
226
// TODO refactor, almost the same as _close above, but don't remove tabIndex
227
227
if ( this . active ) {
228
228
this . active
229
- . menu ( "closeAll " )
229
+ . menu ( "collapseAll " )
230
230
. hide ( )
231
231
. attr ( "aria-hidden" , "true" )
232
232
. attr ( "aria-expanded" , "false" ) ;
You can’t perform that action at this time.
0 commit comments