Changeset 59139
- Timestamp:
- 09/30/2024 10:20:36 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/controllers/state.js
r57691 r59139 166 166 var menu = this.frame.menu, 167 167 mode = this.get('menu'), 168 actionMenuItems,169 actionMenu Length,170 view;168 view, 169 actionMenuItems = this.frame.menu.get('views'), 170 actionMenuLength = actionMenuItems ? actionMenuItems.views.get().length : 0; 171 171 172 172 if ( this.frame.menu ) { 173 actionMenuItems = this.frame.menu.get('views'),174 actionMenuLength = actionMenuItems ? actionMenuItems.views.get().length : 0,175 173 // Show action menu only if it is active and has more than one default element. 176 174 this.frame.$el.toggleClass( 'hide-menu', ! mode || actionMenuLength < 2 ); 177 175 } 178 if ( ! mode ) {176 if ( ! mode || actionMenuLength < 2 ) { 179 177 return; 180 178 }
Note: See TracChangeset
for help on using the changeset viewer.