From f6b1f2202a1f37c10bf9a9ffb9d0dfd597f52882 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 22 Jan 2014 17:17:11 +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. Built from https://develop.svn.wordpress.org/trunk@27000 git-svn-id: http://core.svn.wordpress.org/trunk@26877 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-editor.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 2565f62d45..a3b5a18da5 100644 --- a/wp-includes/js/media-editor.js +++ b/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 *