diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
index b3b4433..284d0d7 100644
|
a
|
b
|
|
| 270 | 270 | }, |
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | | * Handle changes to the active state. |
| | 273 | * Active state change handler. |
| 274 | 274 | * |
| 275 | | * This does not change the active state, it merely handles the behavior |
| 276 | | * for when it does change. |
| | 275 | * Shows the container if it is active, hides it if not. |
| 277 | 276 | * |
| 278 | 277 | * To override by subclass, update the container's UI to reflect the provided active state. |
| 279 | 278 | * |
| … |
… |
|
| 2573 | 2572 | api.panel = new api.Values({ defaultConstructor: api.Panel }); |
| 2574 | 2573 | |
| 2575 | 2574 | /** |
| | 2575 | * An object that fetches a preview in the background of the document, which |
| | 2576 | * allows for seamless replacement of an existing preview. |
| | 2577 | * |
| 2576 | 2578 | * @class |
| 2577 | 2579 | * @augments wp.customize.Messenger |
| 2578 | 2580 | * @augments wp.customize.Class |
| … |
… |
|
| 2581 | 2583 | api.PreviewFrame = api.Messenger.extend({ |
| 2582 | 2584 | sensitivity: 2000, |
| 2583 | 2585 | |
| | 2586 | /** |
| | 2587 | * Initialize the PreviewFrame. |
| | 2588 | * |
| | 2589 | * @param {object} params.container |
| | 2590 | * @param {object} params.signature |
| | 2591 | * @param {object} params.previewUrl |
| | 2592 | * @param {object} params.query |
| | 2593 | * @param {object} options |
| | 2594 | */ |
| 2584 | 2595 | initialize: function( params, options ) { |
| 2585 | 2596 | var deferred = $.Deferred(); |
| 2586 | 2597 | |
| 2587 | | // This is the promise object. |
| | 2598 | /* |
| | 2599 | * Make the instance of the PreviewFrame the promise object |
| | 2600 | * so other objects can easily interact with it. |
| | 2601 | */ |
| 2588 | 2602 | deferred.promise( this ); |
| 2589 | 2603 | |
| 2590 | 2604 | this.container = params.container; |
| … |
… |
|
| 2601 | 2615 | this.run( deferred ); |
| 2602 | 2616 | }, |
| 2603 | 2617 | |
| | 2618 | /** |
| | 2619 | * Run the preview request. |
| | 2620 | * |
| | 2621 | * @param {object} deferred jQuery Deferred object to be resolved with |
| | 2622 | * the request. |
| | 2623 | */ |
| 2604 | 2624 | run: function( deferred ) { |
| 2605 | 2625 | var self = this, |
| 2606 | 2626 | loaded = false, |
| … |
… |
|
| 2928 | 2948 | } |
| 2929 | 2949 | }, |
| 2930 | 2950 | |
| | 2951 | /** |
| | 2952 | * Refresh the preview. |
| | 2953 | */ |
| 2931 | 2954 | refresh: function() { |
| 2932 | 2955 | var self = this; |
| 2933 | 2956 | |