]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/customize-preview.js
WordPress 4.0
[autoinstalls/wordpress.git] / wp-includes / js / customize-preview.js
index 1d274f9c643b06509649da2f97e68351d62bc2c9..6da26f47a0ea994141d2f2e1945ed25ad53b258d 100644 (file)
@@ -2,6 +2,11 @@
        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 ) {