Add the @namespace annotation where appropriate in media-editor.js. Also indicate the default value of a few params via the [options={}] syntax.

See #26870.


Built from https://develop.svn.wordpress.org/trunk@27000


git-svn-id: http://core.svn.wordpress.org/trunk@26877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-01-22 17:17:11 +00:00
parent 06efe8130d
commit f6b1f2202a

View File

@ -12,6 +12,7 @@
/**
* wp.media.string
* @namespace
*/
wp.media.string = {
/**
@ -19,9 +20,9 @@
* outputting the proper object format based on the
* attachment's type.
*
* @global wp.media.view.settings.defaultProps
* @global wp.media.view.settings
*
* @param {Object} props Attachment details (align, link, size, etc).
* @param {Object} [props={}] Attachment details (align, link, size, etc).
* @param {Object} attachment The attachment object, media version of Post.
* @returns {Object} Joined props
*/
@ -274,8 +275,7 @@
/**
* wp.media.gallery
*
* @type {Object}
* @namespace
*/
wp.media.gallery = (function() {
/**
@ -501,6 +501,7 @@
/**
* wp.media.featuredImage
* @namespace
*/
wp.media.featuredImage = {
/**
@ -610,6 +611,7 @@
/**
* wp.media.editor
* @namespace
*/
wp.media.editor = {
/**
@ -883,7 +885,7 @@
},
/**
* @param {string} id
* @param {Object} options
* @param {Object} [options={}]
*
* @this wp.media.editor
*