Changeset 32119
- Timestamp:
- 04/13/2015 10:09:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r32091 r32119 555 555 screenshotQueue: null, 556 556 $window: $( window ), 557 $customizeSidebar: $( '.wp-full-overlay-sidebar-content:first' ), 557 558 /** 559 * @since 4.2.0 560 */ 561 initialize: function () { 562 this.$customizeSidebar = $( '.wp-full-overlay-sidebar-content:first' ); 563 return api.Section.prototype.initialize.apply( this, arguments ); 564 }, 558 565 559 566 /** … … 1952 1959 1953 1960 touchDrag: false, 1961 isRendered: false, 1954 1962 1955 1963 /** … … 1962 1970 renderContentArgs = arguments; 1963 1971 1964 api.section( control.section(), function 1972 api.section( control.section(), function( section ) { 1965 1973 if ( section.expanded() ) { 1966 1974 api.Control.prototype.renderContent.apply( control, renderContentArgs ); 1975 control.isRendered = true; 1967 1976 } else { 1968 section.expanded.bind( function 1969 if ( expanded ) {1977 section.expanded.bind( function( expanded ) { 1978 if ( expanded && ! control.isRendered ) { 1970 1979 api.Control.prototype.renderContent.apply( control, renderContentArgs ); 1980 control.isRendered = true; 1971 1981 } 1972 1982 } );
Note: See TracChangeset
for help on using the changeset viewer.