diff options
Diffstat (limited to 'src/js/_enqueues/wp/media/models.js')
-rw-r--r-- | src/js/_enqueues/wp/media/models.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/js/_enqueues/wp/media/models.js b/src/js/_enqueues/wp/media/models.js index 4f9c65de40..5ff0552cbf 100644 --- a/src/js/_enqueues/wp/media/models.js +++ b/src/js/_enqueues/wp/media/models.js @@ -17,7 +17,7 @@ window.wp = window.wp || {}; * @memberOf wp * @namespace * - * @param {object} attributes The properties passed to the main media controller. + * @param {Object} attributes The properties passed to the main media controller. * @return {wp.media.view.MediaFrame} A media workflow. */ media = wp.media = function( attributes ) { @@ -183,10 +183,10 @@ _.extend( media, /** @lends wp.media */{ * Truncates a string by injecting an ellipsis into the middle. * Useful for filenames. * - * @param {String} string - * @param {Number} [length=30] - * @param {String} [replacement=…] - * @return {String} The string, unless length is greater than string.length. + * @param {string} string + * @param {number} [length=30] + * @param {string} [replacement=…] + * @return {string} The string, unless length is greater than string.length. */ truncate: function( string, length, replacement ) { length = length || 30; @@ -209,7 +209,7 @@ _.extend( media, /** @lends wp.media */{ * wp.media.attachment * * @static - * @param {String} id A string used to identify a model. + * @param {string} id A string used to identify a model. * @return {wp.media.model.Attachment} */ media.attachment = function( id ) { @@ -229,7 +229,7 @@ Attachments.all = new Attachments(); * * Shorthand for creating a new Attachments Query. * - * @param {object} [props] + * @param {Object} [props] * @return {wp.media.model.Attachments} */ media.query = function( props ) { |