Changeset 35783
- Timestamp:
- 12/06/2015 06:38:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/customize-preview-widgets.js
r31471 r35783 3 3 if ( ! wp || ! wp.customize ) { return; } 4 4 5 var api = wp.customize, 6 OldPreview; 5 var api = wp.customize; 7 6 8 7 /** … … 21 20 init: function () { 22 21 var self = this; 22 23 this.preview = api.preview; 23 24 this.buildWidgetSelectors(); 24 25 this.highlightControls(); … … 105 106 }; 106 107 107 /**108 * Capture the instance of the Preview since it is private109 */110 OldPreview = api.Preview;111 api.Preview = OldPreview.extend( {112 initialize: function( params, options ) {113 api.WidgetCustomizerPreview.preview = this;114 OldPreview.prototype.initialize.call( this, params, options );115 }116 } );117 118 108 $(function () { 119 109 var settings = window._wpWidgetCustomizerPreviewSettings;
Note: See TracChangeset
for help on using the changeset viewer.