File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -191,15 +191,14 @@ $.widget( "ui.menubar", {
191
191
this . __applyKeyboardBehaviorForSubmenuHavingMenuItem ( $anItem , menubar ) ;
192
192
193
193
$anItem . attr ( "aria-haspopup" , "true" ) ;
194
+ if ( menubar . options . menuIcon ) {
195
+ $anItem . addClass ( "ui-state-default" ) . append ( "<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>" ) ;
196
+ $anItem . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
197
+ }
194
198
} else {
195
199
this . __applyMouseBehaviorForSubmenulessMenuItem ( $anItem , menubar ) ;
196
200
this . __applyKeyboardBehaviorForSubmenulessMenuItem ( $anItem , menubar ) ;
197
201
}
198
-
199
- if ( menubar . options . menuIcon ) {
200
- $anItem . addClass ( "ui-state-default" ) . append ( "<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>" ) ;
201
- $anItem . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
202
- }
203
202
} ,
204
203
205
204
__applyMouseAndKeyboardBehaviorForMenuItem : function ( $anItem , menubar ) {
You can’t perform that action at this time.
0 commit comments