Add some JS Docs for Customizer.

Props ericlewis.
See #33503.


git-svn-id: https://develop.svn.wordpress.org/trunk@33709 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-08-22 17:23:37 +00:00
parent 7e894153a4
commit a679368d8b
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,8 @@
/* global _wpCustomizeLoaderSettings, confirm */
/*
* Expose a public API that allows the customizer to be
* loaded on any page.
*/
window.wp = window.wp || {};
(function( exports, $ ){

View File

@ -1,3 +1,6 @@
/*
* Script run inside a Customizer preview frame.
*/
(function( exports, $ ){
var api = wp.customize,
debounce;
@ -30,8 +33,7 @@
*/
api.Preview = api.Messenger.extend({
/**
* Requires params:
* - url - the URL of preview frame
* @param {string} url The URL of preview frame
*/
initialize: function( params, options ) {
var self = this;