From ba1c9e0c22e46f1259f8f7eee84d0aecb1f1970b Mon Sep 17 00:00:00 2001 From: wonderboymusic Date: Wed, 22 Jan 2014 17:16:56 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@27000 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-editor.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/js/media-editor.js b/src/wp-includes/js/media-editor.js index 2565f62d45..a3b5a18da5 100644 --- a/src/wp-includes/js/media-editor.js +++ b/src/wp-includes/js/media-editor.js @@ -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 *