Changeset 30552
- Timestamp:
- 11/24/2014 10:25:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-widgets.js
r30329 r30552 1388 1388 }); 1389 1389 registeredSidebar.set( 'is_rendered', section.active() ); 1390 },1391 1392 /**1393 * Override Section.isContextuallyActive() to skip considering1394 * SidebarControl as opposed to a WidgetControl.1395 *1396 * @returns {boolean}1397 */1398 isContextuallyActive: function () {1399 var section, activeCount;1400 section = this;1401 activeCount = 0;1402 _( section.controls() ).each( function ( control ) {1403 if ( control.active() && ! control.extended( api.Widgets.SidebarControl ) ) {1404 activeCount += 1;1405 }1406 });1407 return ( activeCount !== 0 );1408 1390 } 1409 1391 });
Note: See TracChangeset
for help on using the changeset viewer.