var api = wp.customize,
debounce;
+ /**
+ * Returns a debounced version of the function.
+ *
+ * @todo Require Underscore.js for this file and retire this.
+ */
debounce = function( fn, delay, context ) {
var timeout;
return function() {
};
};
+ /**
+ * @constructor
+ * @augments wp.customize.Messenger
+ * @augments wp.customize.Class
+ * @mixes wp.customize.Events
+ */
api.Preview = api.Messenger.extend({
/**
* Requires params:
preview.send( 'nonce', api.settings.nonce );
});
- preview.send( 'ready' );
+ preview.send( 'ready', {
+ activeControls: api.settings.activeControls
+ } );
/* Custom Backgrounds */
bg = $.map(['color', 'image', 'position_x', 'repeat', 'attachment'], function( prop ) {