summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/media
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/media')
-rw-r--r--src/js/media/controllers/cropper.js12
-rw-r--r--src/js/media/controllers/customize-image-cropper.js2
-rw-r--r--src/js/media/controllers/edit-image.js6
-rw-r--r--src/js/media/controllers/gallery-add.js4
-rw-r--r--src/js/media/controllers/library.js8
-rw-r--r--src/js/media/controllers/region.js10
-rw-r--r--src/js/media/controllers/state-machine.js18
-rw-r--r--src/js/media/models/attachment.js12
-rw-r--r--src/js/media/models/attachments.js38
-rw-r--r--src/js/media/models/query.js10
-rw-r--r--src/js/media/models/selection.js4
-rw-r--r--src/js/media/views/attachment-compat.js4
-rw-r--r--src/js/media/views/attachment.js18
-rw-r--r--src/js/media/views/attachment/details.js12
-rw-r--r--src/js/media/views/attachments.js24
-rw-r--r--src/js/media/views/attachments/browser.js4
-rw-r--r--src/js/media/views/button-group.js2
-rw-r--r--src/js/media/views/button.js2
-rw-r--r--src/js/media/views/embed/url.js2
-rw-r--r--src/js/media/views/focus-manager.js22
-rw-r--r--src/js/media/views/frame.js6
-rw-r--r--src/js/media/views/iframe.js2
-rw-r--r--src/js/media/views/media-details.js4
-rw-r--r--src/js/media/views/media-frame.js16
-rw-r--r--src/js/media/views/menu-item.js2
-rw-r--r--src/js/media/views/menu.js2
-rw-r--r--src/js/media/views/modal.js16
-rw-r--r--src/js/media/views/priority-list.js8
-rw-r--r--src/js/media/views/search.js2
-rw-r--r--src/js/media/views/settings.js2
-rw-r--r--src/js/media/views/settings/attachment-display.js2
-rw-r--r--src/js/media/views/toolbar.js8
-rw-r--r--src/js/media/views/uploader/editor.js2
-rw-r--r--src/js/media/views/uploader/inline.js6
-rw-r--r--src/js/media/views/uploader/status.js4
-rw-r--r--src/js/media/views/view.js4
36 files changed, 150 insertions, 150 deletions
diff --git a/src/js/media/controllers/cropper.js b/src/js/media/controllers/cropper.js
index 3418064a61..ef16752db4 100644
--- a/src/js/media/controllers/cropper.js
+++ b/src/js/media/controllers/cropper.js
@@ -31,7 +31,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
activate: function() {
this.frame.on( 'content:create:crop', this.createCropContent, this );
@@ -44,7 +44,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
deactivate: function() {
this.frame.toolbar.mode('browse');
@@ -59,7 +59,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @fires crop window
*
- * @returns {void}
+ * @return {void}
*/
createCropContent: function() {
this.cropperView = new wp.media.view.Cropper({
@@ -76,7 +76,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
removeCropper: function() {
this.imgSelect.cancelSelection();
@@ -90,7 +90,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
createCropToolbar: function() {
var canSkipCrop, toolbarOptions;
@@ -152,7 +152,7 @@ Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Croppe
*
* @since 4.2.0
*
- * @returns {$.promise} A jQuery promise with the custom header crop details.
+ * @return {$.promise} A jQuery promise with the custom header crop details.
*/
doCrop: function( attachment ) {
return wp.ajax.post( 'custom-header-crop', _.extend(
diff --git a/src/js/media/controllers/customize-image-cropper.js b/src/js/media/controllers/customize-image-cropper.js
index a9c2e9fc90..06346a95f8 100644
--- a/src/js/media/controllers/customize-image-cropper.js
+++ b/src/js/media/controllers/customize-image-cropper.js
@@ -22,7 +22,7 @@ CustomizeImageCropper = Controller.Cropper.extend(/** @lends wp.media.controller
*
* @param {Object} attachment The attachment to crop.
*
- * @returns {$.promise} A jQuery promise that represents the crop image request.
+ * @return {$.promise} A jQuery promise that represents the crop image request.
*/
doCrop: function( attachment ) {
var cropDetails = attachment.get( 'cropDetails' ),
diff --git a/src/js/media/controllers/edit-image.js b/src/js/media/controllers/edit-image.js
index e83eaea613..cdc29487df 100644
--- a/src/js/media/controllers/edit-image.js
+++ b/src/js/media/controllers/edit-image.js
@@ -36,7 +36,7 @@ EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.Edit
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
activate: function() {
this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) );
@@ -47,7 +47,7 @@ EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.Edit
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
deactivate: function() {
this.frame.off( 'toolbar:render:edit-image' );
@@ -62,7 +62,7 @@ EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.Edit
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
toolbar: function() {
var frame = this.frame,
diff --git a/src/js/media/controllers/gallery-add.js b/src/js/media/controllers/gallery-add.js
index eb61df7cb1..adfb426816 100644
--- a/src/js/media/controllers/gallery-add.js
+++ b/src/js/media/controllers/gallery-add.js
@@ -55,7 +55,7 @@ GalleryAdd = Library.extend(/** @lends wp.media.controller.GalleryAdd.prototype
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
initialize: function() {
if ( ! this.get('library') ) {
@@ -73,7 +73,7 @@ GalleryAdd = Library.extend(/** @lends wp.media.controller.GalleryAdd.prototype
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
activate: function() {
var library = this.get('library'),
diff --git a/src/js/media/controllers/library.js b/src/js/media/controllers/library.js
index 8223fda517..923f3dd7d8 100644
--- a/src/js/media/controllers/library.js
+++ b/src/js/media/controllers/library.js
@@ -153,7 +153,7 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
* @since 3.5.0
*
* @param {wp.media.model.Attachment} attachment
- * @returns {Backbone.Model}
+ * @return {Backbone.Model}
*/
display: function( attachment ) {
var displays = this._displays;
@@ -170,7 +170,7 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
* @since 3.6.0
*
* @param {wp.media.model.Attachment} attachment
- * @returns {Object}
+ * @return {Object}
*/
defaultDisplaySettings: function( attachment ) {
var settings = _.clone( this._defaultDisplaySettings );
@@ -190,7 +190,7 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
* @since 4.4.1
*
* @param {wp.media.model.Attachment} attachment
- * @returns {Boolean}
+ * @return {Boolean}
*/
isImageAttachment: function( attachment ) {
// If uploading, we know the filename but not the mime type.
@@ -207,7 +207,7 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
* @since 3.6.0
*
* @param {wp.media.model.Attachment} attachment
- * @returns {Boolean}
+ * @return {Boolean}
*/
canEmbed: function( attachment ) {
// If uploading, we know the filename but not the mime type.
diff --git a/src/js/media/controllers/region.js b/src/js/media/controllers/region.js
index 0973e68d0c..26d47808e6 100644
--- a/src/js/media/controllers/region.js
+++ b/src/js/media/controllers/region.js
@@ -38,7 +38,7 @@ _.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
* @fires Region#activate
* @fires Region#deactivate
*
- * @returns {wp.media.controller.Region} Returns itself to allow chaining.
+ * @return {wp.media.controller.Region} Returns itself to allow chaining.
*/
mode: function( mode ) {
if ( ! mode ) {
@@ -77,7 +77,7 @@ _.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
* @fires Region#create
* @fires Region#render
*
- * @returns {wp.media.controller.Region} Returns itself to allow chaining.
+ * @return {wp.media.controller.Region} Returns itself to allow chaining.
*/
render: function( mode ) {
// If the mode isn't active, activate it.
@@ -120,7 +120,7 @@ _.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
*
* @since 3.5.0
*
- * @returns {wp.media.View}
+ * @return {wp.media.View}
*/
get: function() {
return this.view.views.first( this.selector );
@@ -133,7 +133,7 @@ _.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
*
* @param {Array|Object} views
* @param {Object} [options={}]
- * @returns {wp.Backbone.Subviews} Subviews is returned to allow chaining.
+ * @return {wp.Backbone.Subviews} Subviews is returned to allow chaining.
*/
set: function( views, options ) {
if ( options ) {
@@ -148,7 +148,7 @@ _.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
* @since 3.5.0
*
* @param {string} event
- * @returns {undefined|wp.media.controller.Region} Returns itself to allow chaining.
+ * @return {undefined|wp.media.controller.Region} Returns itself to allow chaining.
*/
trigger: function( event ) {
var base, args;
diff --git a/src/js/media/controllers/state-machine.js b/src/js/media/controllers/state-machine.js
index 9ddeca5da4..50ebb10e6c 100644
--- a/src/js/media/controllers/state-machine.js
+++ b/src/js/media/controllers/state-machine.js
@@ -31,13 +31,13 @@ _.extend( StateMachine.prototype, Backbone.Events,/** @lends wp.media.controller
* Implicitly creates states.
*
* Ensure that the `states` collection exists so the `StateMachine`
- * can be used as a mixin.
+ * can be used as a mixin.
*
* @since 3.5.0
*
* @param {string} id
- * @returns {wp.media.controller.State} Returns a State model
- * from the StateMachine collection
+ * @return {wp.media.controller.State} Returns a State model from
+ * the StateMachine collection.
*/
state: function( id ) {
this.states = this.states || new Backbone.Collection();
@@ -65,7 +65,7 @@ _.extend( StateMachine.prototype, Backbone.Events,/** @lends wp.media.controller
* @fires wp.media.controller.State#deactivate
* @fires wp.media.controller.State#activate
*
- * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
+ * @return {wp.media.controller.StateMachine} Returns itself to allow chaining.
*/
setState: function( id ) {
var previous = this.state();
@@ -93,8 +93,8 @@ _.extend( StateMachine.prototype, Backbone.Events,/** @lends wp.media.controller
*
* @since 3.5.0
*
- * @returns {wp.media.controller.State} Returns a State model
- * from the StateMachine collection
+ * @return {wp.media.controller.State} Returns a State model from
+ * the StateMachine collection.
*/
lastState: function() {
if ( this._lastState ) {
@@ -109,19 +109,19 @@ _.each([ 'on', 'off', 'trigger' ], function( method ) {
* @function on
* @memberOf wp.media.controller.StateMachine
* @instance
- * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
+ * @return {wp.media.controller.StateMachine} Returns itself to allow chaining.
*/
/**
* @function off
* @memberOf wp.media.controller.StateMachine
* @instance
- * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
+ * @return {wp.media.controller.StateMachine} Returns itself to allow chaining.
*/
/**
* @function trigger
* @memberOf wp.media.controller.StateMachine
* @instance
- * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
+ * @return {wp.media.controller.StateMachine} Returns itself to allow chaining.
*/
StateMachine.prototype[ method ] = function() {
// Ensure that the `states` collection exists so the `StateMachine`
diff --git a/src/js/media/models/attachment.js b/src/js/media/models/attachment.js
index 38f55187ad..cd29d2f98e 100644
--- a/src/js/media/models/attachment.js
+++ b/src/js/media/models/attachment.js
@@ -18,7 +18,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
* @param {wp.media.model.Attachment} model
* @param {Object} [options={}]
*
- * @returns {Promise}
+ * @return {Promise}
*/
sync: function( method, model, options ) {
// If the attachment does not yet have an `id`, return an instantly
@@ -100,8 +100,8 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
* Convert date strings into Date objects.
*
* @param {Object} resp The raw response object, typically returned by fetch()
- * @returns {Object} The modified response object, which is the attributes hash
- * to be set on the model.
+ * @return {Object} The modified response object, which is the attributes hash
+ * to be set on the model.
*/
parse: function( resp ) {
if ( ! resp ) {
@@ -118,7 +118,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
*
* @this Backbone.Model
*
- * @returns {Promise}
+ * @return {Promise}
*/
saveCompat: function( data, options ) {
var model = this;
@@ -143,7 +143,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
* @static
*
* @param {Object} attrs
- * @returns {wp.media.model.Attachment}
+ * @return {wp.media.model.Attachment}
*/
create: function( attrs ) {
var Attachments = wp.media.model.Attachments;
@@ -158,7 +158,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
* @static
* @param {string} id A string used to identify a model.
* @param {Backbone.Model|undefined} attachment
- * @returns {wp.media.model.Attachment}
+ * @return {wp.media.model.Attachment}
*/
get: _.memoize( function( id, attachment ) {
var Attachments = wp.media.model.Attachments;
diff --git a/src/js/media/models/attachments.js b/src/js/media/models/attachments.js
index d0234e52f1..ed46588189 100644
--- a/src/js/media/models/attachments.js
+++ b/src/js/media/models/attachments.js
@@ -148,7 +148,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* Checks whether an attachment is valid.
*
* @param {wp.media.model.Attachment} attachment
- * @returns {Boolean}
+ * @return {Boolean}
*/
validator: function( attachment ) {
@@ -172,7 +172,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @param {wp.media.model.Attachment} attachment
* @param {Object} options
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
validate: function( attachment, options ) {
var valid = this.validator( attachment ),
@@ -195,7 +195,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @fires wp.media.model.Attachments#reset
*
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
validateAll: function( attachments, options ) {
options = options || {};
@@ -214,7 +214,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* and replicate them on this collection.
*
* @param {wp.media.model.Attachments} The attachments collection to observe.
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
observe: function( attachments ) {
this.observers = this.observers || [];
@@ -229,7 +229,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* Stop replicating collection change events from another attachments collection.
*
* @param {wp.media.model.Attachments} The attachments collection to stop observing.
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
unobserve: function( attachments ) {
if ( attachments ) {
@@ -252,7 +252,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* @param {wp.media.model.Attachments} attachments
* @param {Object} options
*
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
_validateHandler: function( attachment, attachments, options ) {
// If we're not mirroring this `attachments` collection,
@@ -268,7 +268,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @param {wp.media.model.Attachments} attachments
* @param {Object} options
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
_validateAllHandler: function( attachments, options ) {
return this.validateAll( attachments, options );
@@ -278,7 +278,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* in the collection.
*
* @param {wp.media.model.Attachments} The attachments collection to mirror.
- * @returns {wp.media.model.Attachments} Returns itself to allow chaining.
+ * @return {wp.media.model.Attachments} Returns itself to allow chaining.
*/
mirror: function( attachments ) {
if ( this.mirroring && this.mirroring === attachments ) {
@@ -316,7 +316,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* server persistence by itself.
*
* @param {object} options
- * @returns {Promise}
+ * @return {Promise}
*/
more: function( options ) {
var deferred = jQuery.Deferred(),
@@ -349,7 +349,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* and forwards to its `hasMore` method. This collection class doesn't have
* server persistence by itself.
*
- * @returns {boolean}
+ * @return {boolean}
*/
hasMore: function() {
return this.mirroring ? this.mirroring.hasMore() : false;
@@ -361,7 +361,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @param {Object|Array} resp The raw response Object/Array.
* @param {Object} xhr
- * @returns {Array} The array of model attributes to be added to the collection
+ * @return {Array} The array of model attributes to be added to the collection
*/
parse: function( resp, xhr ) {
if ( ! _.isArray( resp ) ) {
@@ -405,7 +405,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* If this collection is sorted by `menuOrder`, recalculates and saves
* the menu order to the database.
*
- * @returns {undefined|Promise}
+ * @return {undefined|Promise}
*/
saveMenuOrder: function() {
if ( 'menuOrder' !== this.props.get('orderby') ) {
@@ -444,9 +444,9 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
* @param {Backbone.Model} a
* @param {Backbone.Model} b
* @param {Object} options
- * @returns {Number} -1 if the first model should come before the second,
- * 0 if they are of the same rank and
- * 1 if the first model should come after.
+ * @return {Number} -1 if the first model should come before the second,
+ * 0 if they are of the same rank and
+ * 1 if the first model should come after.
*/
comparator: function( a, b, options ) {
var key = this.props.get('orderby'),
@@ -480,7 +480,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @this wp.media.model.Attachments
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
search: function( attachment ) {
if ( ! this.props.get('search') ) {
@@ -498,7 +498,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @this wp.media.model.Attachments
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
type: function( attachment ) {
var type = this.props.get('type'), atts = attachment.toJSON(), mime, found;
@@ -525,7 +525,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @this wp.media.model.Attachments
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
uploadedTo: function( attachment ) {
var uploadedTo = this.props.get('uploadedTo');
@@ -541,7 +541,7 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen
*
* @this wp.media.model.Attachments
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
status: function( attachment ) {
var status = this.props.get('status');
diff --git a/src/js/media/models/query.js b/src/js/media/models/query.js
index 560e54944d..90e36e6cc7 100644
--- a/src/js/media/models/query.js
+++ b/src/js/media/models/query.js
@@ -80,7 +80,7 @@ Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
* Whether there are more attachments that haven't been sync'd from the server
* that match the collection's query.
*
- * @returns {boolean}
+ * @return {boolean}
*/
hasMore: function() {
return this._hasMore;
@@ -89,7 +89,7 @@ Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
* Fetch more attachments from the server for the collection.
*
* @param {object} [options={}]
- * @returns {Promise}
+ * @return {Promise}
*/
more: function( options ) {
var query = this;
@@ -119,7 +119,7 @@ Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
* @param {String} method
* @param {Backbone.Model} model
* @param {Object} [options={}]
- * @returns {Promise}
+ * @return {Promise}
*/
sync: function( method, model, options ) {
var args, fallback;
@@ -221,7 +221,7 @@ Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
* @param {Object} [props.author]
* @param {Object} [options]
*
- * @returns {wp.media.model.Query} A new Attachments Query collection.
+ * @return {wp.media.model.Query} A new Attachments Query collection.
*/
get: (function(){
/**
@@ -231,7 +231,7 @@ Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
var queries = [];
/**
- * @returns {Query}
+ * @return {Query}
*/
return function( props, options ) {
var args = {},
diff --git a/src/js/media/models/selection.js b/src/js/media/models/selection.js
index 894545f0fb..a2fc899c8b 100644
--- a/src/js/media/models/selection.js
+++ b/src/js/media/models/selection.js
@@ -37,7 +37,7 @@ Selection = Attachments.extend(/** @lends wp.media.model.Selection.prototype */{
*
* @param {Array} models
* @param {Object} options
- * @returns {wp.media.model.Attachment[]}
+ * @return {wp.media.model.Attachment[]}
*/
add: function( models, options ) {
if ( ! this.multiple ) {
@@ -57,7 +57,7 @@ Selection = Attachments.extend(/** @lends wp.media.model.Selection.prototype */{
* @fires wp.media.model.Selection#selection:single
* @fires wp.media.model.Selection#selection:unsingle
*
- * @returns {Backbone.Model}
+ * @return {Backbone.Model}
*/
single: function( model ) {
var previous = this._single;
diff --git a/src/js/media/views/attachment-compat.js b/src/js/media/views/attachment-compat.js
index 5c2d72a58f..c58755d227 100644
--- a/src/js/media/views/attachment-compat.js
+++ b/src/js/media/views/attachment-compat.js
@@ -28,7 +28,7 @@ AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy
this.listenTo( this.model, 'change:compat', this.render );
},
/**
- * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
+ * @return {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
*/
dispose: function() {
if ( this.$(':focus').length ) {
@@ -40,7 +40,7 @@ AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy
return View.prototype.dispose.apply( this, arguments );
},
/**
- * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
+ * @return {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
*/
render: function() {
var compat = this.model.get('compat');
diff --git a/src/js/media/views/attachment.js b/src/js/media/views/attachment.js
index e7aae2f1a2..36ea814fe1 100644
--- a/src/js/media/views/attachment.js
+++ b/src/js/media/views/attachment.js
@@ -69,7 +69,7 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
this.listenTo( this.controller.states, 'attachment:compat:waiting attachment:compat:ready', this.updateSave );
},
/**
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
dispose: function() {
var selection = this.options.selection;
@@ -87,7 +87,7 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
return this;
},
/**
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
render: function() {
var options = _.defaults( this.model.toJSON(), {
@@ -282,7 +282,7 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
this[ this.selected() ? 'select' : 'deselect' ]();
},
/**
- * @returns {unresolved|Boolean}
+ * @return {unresolved|Boolean}
*/
selected: function() {
var selection = this.options.selection;
@@ -350,7 +350,7 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
},
/**
* @param {string} size
- * @returns {Object}
+ * @return {Object}
*/
imageSize: function( size ) {
var sizes = this.model.get('sizes'), matched = false;
@@ -434,7 +434,7 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
},
/**
* @param {string} status
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
updateSave: function( status ) {
var save = this._save = this._save || { status: 'ready' };
@@ -529,7 +529,7 @@ _.each({
*
* @param {Backbone.Model} model
* @param {string} value
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
/**
* @function _syncTitle
@@ -538,7 +538,7 @@ _.each({
*
* @param {Backbone.Model} model
* @param {string} value
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
/**
* @function _syncArtist
@@ -547,7 +547,7 @@ _.each({
*
* @param {Backbone.Model} model
* @param {string} value
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
/**
* @function _syncAlbum
@@ -556,7 +556,7 @@ _.each({
*
* @param {Backbone.Model} model
* @param {string} value
- * @returns {wp.media.view.Attachment} Returns itself to allow chaining.
+ * @return {wp.media.view.Attachment} Returns itself to allow chaining.
*/
Attachment.prototype[ method ] = function( model, value ) {
var $setting = this.$('[data-setting="' + setting + '"]');
diff --git a/src/js/media/views/attachment/details.js b/src/js/media/views/attachment/details.js
index 0afa28a4b4..5f80220088 100644
--- a/src/js/media/views/attachment/details.js
+++ b/src/js/media/views/attachment/details.js
@@ -34,7 +34,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
* @constructs wp.media.view.Attachment.Details
* @augments wp.media.view.Attachment
*
- * @returns {void}
+ * @return {void}
*/
initialize: function() {
this.options = _.defaults( this.options, {
@@ -106,7 +106,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
*
* @param {MouseEvent} event A click event.
*
- * @returns {void}
+ * @return {void}
*/
deleteAttachment: function( event ) {
event.preventDefault();
@@ -129,7 +129,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
*
* @param {MouseEvent} event A click event.
*
- * @returns {void}
+ * @return {void}
*/
trashAttachment: function( event ) {
var library = this.controller.library,
@@ -165,7 +165,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
*
* @param {MouseEvent} event A click event.
*
- * @returns {void}
+ * @return {void}
*/
untrashAttachment: function( event ) {
var library = this.controller.library;
@@ -184,7 +184,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
*
* @param {MouseEvent} event A click event.
*
- * @returns {void}
+ * @return {void}
*/
editAttachment: function( event ) {
var editState = this.controller.states.get( 'edit-image' );
@@ -210,7 +210,7 @@ Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototyp
*
* @param {KeyboardEvent} event A keyboard event.
*
- * @returns {boolean|void} Returns false or undefined.
+ * @return {boolean|void} Returns false or undefined.
*/
toggleSelectionHandler: function( event ) {
if ( 'keydown' === event.type && 9 === event.keyCode && event.shiftKey && event.target === this.$( ':tabbable' ).get( 0 ) ) {
diff --git a/src/js/media/views/attachments.js b/src/js/media/views/attachments.js
index a3abca59a0..c36f7f681b 100644
--- a/src/js/media/views/attachments.js
+++ b/src/js/media/views/attachments.js
@@ -116,7 +116,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @listens window:resize
*
- * @returns {void}
+ * @return {void}
*/
bindEvents: function() {
this.$window.off( this.resizeEvent ).on( this.resizeEvent, _.debounce( this.setColumns, 50 ) );
@@ -127,7 +127,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 4.0.0
*
- * @returns {void}
+ * @return {void}
*/
attachmentFocus: function() {
/*
@@ -154,7 +154,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 4.0.0
*
- * @returns {void}
+ * @return {void}
*/
restoreFocus: function() {
this.$( 'li.selected:first' ).focus();
@@ -169,7 +169,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @param {KeyboardEvent} event The keyboard event that triggered this function.
*
- * @returns {void}
+ * @return {void}
*/
arrowEvent: function( event ) {
var attachments = this.$el.children( 'li' ),
@@ -219,7 +219,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
dispose: function() {
this.collection.props.off( null, null, this );
@@ -239,7 +239,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 4.0.0
*
- * @returns {void}
+ * @return {void}
*/
setColumns: function() {
var prev = this.columns,
@@ -264,7 +264,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @fires collection:reset
*
- * @returns {void}
+ * @return {void}
*/
initSortable: function() {
var collection = this.collection;
@@ -338,7 +338,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
refreshSortable: function() {
if ( ! this.options.sortable || ! $.fn.sortable ) {
@@ -359,7 +359,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @param {wp.media.model.Attachment} attachment
*
- * @returns {wp.media.View} The created view.
+ * @return {wp.media.View} The created view.
*/
createAttachmentView: function( attachment ) {
var view = new this.options.AttachmentView({
@@ -380,7 +380,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
prepare: function() {
if ( this.collection.length ) {
@@ -397,7 +397,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
ready: function() {
this.scroll();
@@ -411,7 +411,7 @@ Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
scroll: function() {
var view = this,
diff --git a/src/js/media/views/attachments/browser.js b/src/js/media/views/attachments/browser.js
index 85ecfde14a..a4a880f842 100644
--- a/src/js/media/views/attachments/browser.js
+++ b/src/js/media/views/attachments/browser.js
@@ -95,7 +95,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro
*
* @since 5.3.0
*
- * @returns {void}
+ * @return {void}
*/
announceSearchResults: _.debounce( function() {
var count;
@@ -123,7 +123,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro
},
/**
- * @returns {wp.media.view.AttachmentsBrowser} Returns itself to allow chaining.
+ * @return {wp.media.view.AttachmentsBrowser} Returns itself to allow chaining.
*/
dispose: function() {
this.options.selection.off( null, null, this );
diff --git a/src/js/media/views/button-group.js b/src/js/media/views/button-group.js
index 5b44d5ff11..bf5fe968bc 100644
--- a/src/js/media/views/button-group.js
+++ b/src/js/media/views/button-group.js
@@ -35,7 +35,7 @@ ButtonGroup = wp.media.View.extend(/** @lends wp.media.view.ButtonGroup.prototyp
},
/**
- * @returns {wp.media.view.ButtonGroup}
+ * @return {wp.media.view.ButtonGroup}
*/
render: function() {
this.$el.html( $( _.pluck( this.buttons, 'el' ) ).detach() );
diff --git a/src/js/media/views/button.js b/src/js/media/views/button.js
index bde40f6463..ae7ff7852f 100644
--- a/src/js/media/views/button.js
+++ b/src/js/media/views/button.js
@@ -47,7 +47,7 @@ var Button = wp.media.View.extend(/** @lends wp.media.view.Button.prototype */{
this.listenTo( this.model, 'change', this.render );
},
/**
- * @returns {wp.media.view.Button} Returns itself to allow chaining.
+ * @return {wp.media.view.Button} Returns itself to allow chaining.
*/
render: function() {
var classes = [ 'button', this.className ],
diff --git a/src/js/media/views/embed/url.js b/src/js/media/views/embed/url.js
index 1c80ee5b4f..21ac1a9203 100644
--- a/src/js/media/views/embed/url.js
+++ b/src/js/media/views/embed/url.js
@@ -39,7 +39,7 @@ EmbedUrl = View.extend(/** @lends wp.media.view.EmbedUrl.prototype */{
}
},
/**
- * @returns {wp.media.view.EmbedUrl} Returns itself to allow chaining.
+ * @return {wp.media.view.EmbedUrl} Returns itself to allow chaining.
*/
render: function() {
var $input = this.$input;
diff --git a/src/js/media/views/focus-manager.js b/src/js/media/views/focus-manager.js
index 193864a4df..ba2db72511 100644
--- a/src/js/media/views/focus-manager.js
+++ b/src/js/media/views/focus-manager.js
@@ -37,7 +37,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} event jQuery event object.
*
- * @returns {void}
+ * @return {void}
*/
focusManagementMode: function( event ) {
if ( this.mode === 'constrainTabbing' ) {
@@ -54,7 +54,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @since 5.3.0
*
- * @returns {object} A jQuery collection of tabbable elements.
+ * @return {object} A jQuery collection of tabbable elements.
*/
getTabbables: function() {
// Skip the file input added by Plupload.
@@ -66,7 +66,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
focus: function() {
this.$( '.media-modal' ).focus();
@@ -79,7 +79,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {Object} event A keydown jQuery event.
*
- * @returns {void}
+ * @return {void}
*/
constrainTabbing: function( event ) {
var tabbables;
@@ -116,7 +116,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} visibleElement The jQuery object representing the element that should not be hidden.
*
- * @returns {void}
+ * @return {void}
*/
setAriaHiddenOnBodyChildren: function( visibleElement ) {
var bodyChildren,
@@ -155,7 +155,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @since 5.2.3
*
- * @returns {void}
+ * @return {void}
*/
removeAriaHiddenFromBodyChildren: function() {
_.each( this.ariaHiddenElements, function( element ) {
@@ -173,7 +173,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} element The DOM element that should be checked.
*
- * @returns {boolean} Whether the element should not be hidden from assistive technologies.
+ * @return {boolean} Whether the element should not be hidden from assistive technologies.
*/
elementShouldBeHidden: function( element ) {
var role = element.getAttribute( 'role' ),
@@ -220,7 +220,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} event jQuery event object.
*
- * @returns {void}
+ * @return {void}
*/
setupAriaTabs: function() {
this.tabs = this.$( '[role="tab"]' );
@@ -244,7 +244,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} event jQuery event object.
*
- * @returns {void}
+ * @return {void}
*/
tabsNavigation: function( event ) {
var orientation = 'horizontal',
@@ -280,7 +280,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} event jQuery event object.
*
- * @returns {void}
+ * @return {void}
*/
switchTabs: function( event ) {
var key = event.which,
@@ -331,7 +331,7 @@ var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.pr
*
* @param {object} tab The tab DOM element.
*
- * @returns {void}
+ * @return {void}
*/
activateTab: function( tab ) {
if ( ! tab ) {
diff --git a/src/js/media/views/frame.js b/src/js/media/views/frame.js
index bd7a5c5786..ac69d6e072 100644
--- a/src/js/media/views/frame.js
+++ b/src/js/media/views/frame.js
@@ -80,7 +80,7 @@ var Frame = wp.media.View.extend(/** @lends wp.media.view.Frame.prototype */{
/**
* Reset all states on the frame to their defaults.
*
- * @returns {wp.media.view.Frame} Returns itself to allow chaining.
+ * @return {wp.media.view.Frame} Returns itself to allow chaining.
*/
reset: function() {
this.states.invoke( 'trigger', 'reset' );
@@ -114,7 +114,7 @@ var Frame = wp.media.View.extend(/** @lends wp.media.view.Frame.prototype */{
* Activate a mode on the frame.
*
* @param string mode Mode ID.
- * @returns {this} Returns itself to allow chaining.
+ * @return {this} Returns itself to allow chaining.
*/
activateMode: function( mode ) {
// Bail if the mode is already active.
@@ -131,7 +131,7 @@ var Frame = wp.media.View.extend(/** @lends wp.media.view.Frame.prototype */{
* Deactivate a mode on the frame.
*
* @param string mode Mode ID.
- * @returns {this} Returns itself to allow chaining.
+ * @return {this} Returns itself to allow chaining.
*/
deactivateMode: function( mode ) {
// Bail if the mode isn't active.
diff --git a/src/js/media/views/iframe.js b/src/js/media/views/iframe.js
index 685a13cb06..d047560d73 100644
--- a/src/js/media/views/iframe.js
+++ b/src/js/media/views/iframe.js
@@ -11,7 +11,7 @@
var Iframe = wp.media.View.extend(/** @lends wp.media.view.Iframe.prototype */{
className: 'media-iframe',
/**
- * @returns {wp.media.view.Iframe} Returns itself to allow chaining.
+ * @return {wp.media.view.Iframe} Returns itself to allow chaining.
*/
render: function() {
this.views.detach();
diff --git a/src/js/media/views/media-details.js b/src/js/media/views/media-details.js
index 093bb9cc15..19b1fb0d9c 100644
--- a/src/js/media/views/media-details.js
+++ b/src/js/media/views/media-details.js
@@ -123,7 +123,7 @@ MediaDetails = AttachmentDisplay.extend(/** @lends wp.media.view.MediaDetails.pr
},
/**
- * @returns {media.view.MediaDetails} Returns itself to allow chaining.
+ * @return {media.view.MediaDetails} Returns itself to allow chaining.
*/
render: function() {
AttachmentDisplay.prototype.render.apply( this, arguments );
@@ -148,7 +148,7 @@ MediaDetails = AttachmentDisplay.extend(/** @lends wp.media.view.MediaDetails.pr
* When multiple players in the DOM contain the same src, things get weird.
*
* @param {HTMLElement} elem
- * @returns {HTMLElement}
+ * @return {HTMLElement}
*/
prepareSrc : function( elem ) {
var i = MediaDetails.instances++;
diff --git a/src/js/media/views/media-frame.js b/src/js/media/views/media-frame.js
index 0d5e64a12e..aca0bf5ef8 100644
--- a/src/js/media/views/media-frame.js
+++ b/src/js/media/views/media-frame.js
@@ -94,7 +94,7 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
*
* @since 5.3.0
*
- * @returns {void}
+ * @return {void}
*/
setMenuTabPanelAriaAttributes: function() {
var stateId = this.state().get( 'id' ),
@@ -121,7 +121,7 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
*
* @since 5.3.0
*
- * @returns {void}
+ * @return {void}
*/
setRouterTabPanelAriaAttributes: function() {
var tabPanelEl = this.$el.find( '.media-frame-content' ),
@@ -143,7 +143,7 @@ MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
},
/**
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
render: function() {
// Activate the default state if no active state exists.
@@ -316,35 +316,35 @@ _.each(['open','close','attach','detach','escape'], function( method ) {
* @memberOf wp.media.view.MediaFrame
* @instance
*
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
/**
* @function close
* @memberOf wp.media.view.MediaFrame
* @instance
*
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
/**
* @function attach
* @memberOf wp.media.view.MediaFrame
* @instance
*
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
/**
* @function detach
* @memberOf wp.media.view.MediaFrame
* @instance
*
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
/**
* @function escape
* @memberOf wp.media.view.MediaFrame
* @instance
*
- * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining.
+ * @return {wp.media.view.MediaFrame} Returns itself to allow chaining.
*/
MediaFrame.prototype[ method ] = function() {
if ( this.modal ) {
diff --git a/src/js/media/views/menu-item.js b/src/js/media/views/menu-item.js
index e4b022cc74..b492b4eae3 100644
--- a/src/js/media/views/menu-item.js
+++ b/src/js/media/views/menu-item.js
@@ -47,7 +47,7 @@ MenuItem = wp.media.View.extend(/** @lends wp.media.view.MenuItem.prototype */{
},
/**
- * @returns {wp.media.view.MenuItem} returns itself to allow chaining.
+ * @return {wp.media.view.MenuItem} returns itself to allow chaining.
*/
render: function() {
var options = this.options,
diff --git a/src/js/media/views/menu.js b/src/js/media/views/menu.js
index 4ea75c7148..cf967c83bb 100644
--- a/src/js/media/views/menu.js
+++ b/src/js/media/views/menu.js
@@ -48,7 +48,7 @@ Menu = PriorityList.extend(/** @lends wp.media.view.Menu.prototype */{
/**
* @param {Object} options
* @param {string} id
- * @returns {wp.media.View}
+ * @return {wp.media.View}
*/
toView: function( options, id ) {
options = options || {};
diff --git a/src/js/media/views/modal.js b/src/js/media/views/modal.js
index b823e2f868..7927c0777b 100644
--- a/src/js/media/views/modal.js
+++ b/src/js/media/views/modal.js
@@ -37,7 +37,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
});
},
/**
- * @returns {Object}
+ * @return {Object}
*/
prepare: function() {
return {
@@ -47,7 +47,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
},
/**
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
attach: function() {
if ( this.views.attached ) {
@@ -68,7 +68,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
},
/**
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
detach: function() {
if ( this.$el.is(':visible') ) {
@@ -81,7 +81,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
},
/**
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
open: function() {
var $el = this.$el,
@@ -125,7 +125,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
/**
* @param {Object} options
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
close: function( options ) {
if ( ! this.views.attached || ! this.$el.is(':visible') ) {
@@ -164,7 +164,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
return this;
},
/**
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
escape: function() {
return this.close({ escape: true });
@@ -179,7 +179,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
/**
* @param {Array|Object} content Views to register to '.media-modal-content'
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
content: function( content ) {
this.views.set( '.media-modal-content', content );
@@ -191,7 +191,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
* forwards events to the modal's controller.
*
* @param {string} id
- * @returns {wp.media.view.Modal} Returns itself to allow chaining.
+ * @return {wp.media.view.Modal} Returns itself to allow chaining.
*/
propagate: function( id ) {
this.trigger( id );
diff --git a/src/js/media/views/priority-list.js b/src/js/media/views/priority-list.js
index 8a3ff50601..65e7cde20d 100644
--- a/src/js/media/views/priority-list.js
+++ b/src/js/media/views/priority-list.js
@@ -25,7 +25,7 @@ var PriorityList = wp.media.View.extend(/** @lends wp.media.view.PriorityList.pr
* @param {string} id
* @param {wp.media.View|Object} view
* @param {Object} options
- * @returns {wp.media.view.PriorityList} Returns itself to allow chaining.
+ * @return {wp.media.view.PriorityList} Returns itself to allow chaining.
*/
set: function( id, view, options ) {
var priority, views, index;
@@ -66,14 +66,14 @@ var PriorityList = wp.media.View.extend(/** @lends wp.media.view.PriorityList.pr
},
/**
* @param {string} id
- * @returns {wp.media.View}
+ * @return {wp.media.View}
*/
get: function( id ) {
return this._views[ id ];
},
/**
* @param {string} id
- * @returns {wp.media.view.PriorityList}
+ * @return {wp.media.view.PriorityList}
*/
unset: function( id ) {
var view = this.get( id );
@@ -87,7 +87,7 @@ var PriorityList = wp.media.View.extend(/** @lends wp.media.view.PriorityList.pr
},
/**
* @param {Object} options
- * @returns {wp.media.View}
+ * @return {wp.media.View}
*/
toView: function( options ) {
return new wp.media.View( options );
diff --git a/src/js/media/views/search.js b/src/js/media/views/search.js
index f774943877..875f4b7050 100644
--- a/src/js/media/views/search.js
+++ b/src/js/media/views/search.js
@@ -24,7 +24,7 @@ Search = wp.media.View.extend(/** @lends wp.media.view.Search.prototype */{
},
/**
- * @returns {wp.media.view.Search} Returns itself to allow chaining.
+ * @return {wp.media.view.Search} Returns itself to allow chaining.
*/
render: function() {
this.el.value = this.model.escape('search');
diff --git a/src/js/media/views/settings.js b/src/js/media/views/settings.js
index 6838e38114..0cfe272c0a 100644
--- a/src/js/media/views/settings.js
+++ b/src/js/media/views/settings.js
@@ -31,7 +31,7 @@ Settings = View.extend(/** @lends wp.media.view.Settings.prototype */{
}, this.options );
},
/**
- * @returns {wp.media.view.Settings} Returns itself to allow chaining.
+ * @return {wp.media.view.Settings} Returns itself to allow chaining.
*/
render: function() {
View.prototype.render.apply( this, arguments );
diff --git a/src/js/media/views/settings/attachment-display.js b/src/js/media/views/settings/attachment-display.js
index 7ca3751c08..1480e39be9 100644
--- a/src/js/media/views/settings/attachment-display.js
+++ b/src/js/media/views/settings/attachment-display.js
@@ -42,7 +42,7 @@ AttachmentDisplay = Settings.extend(/** @lends wp.media.view.Settings.Attachment
Settings.prototype.dispose.apply( this, arguments );
},
/**
- * @returns {wp.media.view.AttachmentDisplay} Returns itself to allow chaining.
+ * @return {wp.media.view.AttachmentDisplay} Returns itself to allow chaining.
*/
render: function() {
var attachment = this.options.attachment;
diff --git a/src/js/media/views/toolbar.js b/src/js/media/views/toolbar.js
index 0cece6db5e..4cd6ee2d8f 100644
--- a/src/js/media/views/toolbar.js
+++ b/src/js/media/views/toolbar.js
@@ -50,7 +50,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
}
},
/**
- * @returns {wp.media.view.Toolbar} Returns itsef to allow chaining
+ * @return {wp.media.view.Toolbar} Returns itsef to allow chaining
*/
dispose: function() {
if ( this.selection ) {
@@ -74,7 +74,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
* @param {string} id
* @param {Backbone.View|Object} view
* @param {Object} [options={}]
- * @returns {wp.media.view.Toolbar} Returns itself to allow chaining.
+ * @return {wp.media.view.Toolbar} Returns itself to allow chaining.
*/
set: function( id, view, options ) {
var list;
@@ -108,7 +108,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
},
/**
* @param {string} id
- * @returns {wp.media.view.Button}
+ * @return {wp.media.view.Button}
*/
get: function( id ) {
return this._views[ id ];
@@ -116,7 +116,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
/**
* @param {string} id
* @param {Object} options
- * @returns {wp.media.view.Toolbar} Returns itself to allow chaining.
+ * @return {wp.media.view.Toolbar} Returns itself to allow chaining.
*/
unset: function( id, options ) {
delete this._views[ id ];
diff --git a/src/js/media/views/uploader/editor.js b/src/js/media/views/uploader/editor.js
index ddc0d3d5b4..f1b842fafb 100644
--- a/src/js/media/views/uploader/editor.js
+++ b/src/js/media/views/uploader/editor.js
@@ -64,7 +64,7 @@ EditorUploader = View.extend(/** @lends wp.media.view.EditorUploader.prototype *
/**
* Check browser support for drag'n'drop.
*
- * @return Boolean
+ * @return {Boolean}
*/
browserSupport: function() {
var supports = false, div = document.createElement('div');
diff --git a/src/js/media/views/uploader/inline.js b/src/js/media/views/uploader/inline.js
index 2f94210a9b..4cb80e1e0e 100644
--- a/src/js/media/views/uploader/inline.js
+++ b/src/js/media/views/uploader/inline.js
@@ -60,7 +60,7 @@ UploaderInline = View.extend(/** @lends wp.media.view.UploaderInline.prototype *
return data;
},
/**
- * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining.
+ * @return {wp.media.view.UploaderInline} Returns itself to allow chaining.
*/
dispose: function() {
if ( this.disposing ) {
@@ -77,7 +77,7 @@ UploaderInline = View.extend(/** @lends wp.media.view.UploaderInline.prototype *
return this.remove();
},
/**
- * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining.
+ * @return {wp.media.view.UploaderInline} Returns itself to allow chaining.
*/
remove: function() {
/**
@@ -97,7 +97,7 @@ UploaderInline = View.extend(/** @lends wp.media.view.UploaderInline.prototype *
}
},
/**
- * @returns {wp.media.view.UploaderInline}
+ * @return {wp.media.view.UploaderInline}
*/
ready: function() {
var $browser = this.options.$browser,
diff --git a/src/js/media/views/uploader/status.js b/src/js/media/views/uploader/status.js
index 1cbdaf30a7..0be6f15f5d 100644
--- a/src/js/media/views/uploader/status.js
+++ b/src/js/media/views/uploader/status.js
@@ -33,7 +33,7 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype *
this.errors.on( 'add', this.error, this );
},
/**
- * @returns {wp.media.view.UploaderStatus}
+ * @return {wp.media.view.UploaderStatus}
*/
dispose: function() {
wp.Uploader.queue.off( null, null, this );
@@ -102,7 +102,7 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype *
},
/**
* @param {string} filename
- * @returns {string}
+ * @return {string}
*/
filename: function( filename ) {
return _.escape( filename );
diff --git a/src/js/media/views/view.js b/src/js/media/views/view.js
index 9b1f938fca..19b16e5c8f 100644
--- a/src/js/media/views/view.js
+++ b/src/js/media/views/view.js
@@ -28,7 +28,7 @@ var View = wp.Backbone.View.extend(/** @lends wp.media.View.prototype */{
* before Backbone 0.9.8 came out. Figure out if Backbone core takes
* care of this in Backbone.View now.
*
- * @returns {wp.media.View} Returns itself to allow chaining.
+ * @return {wp.media.View} Returns itself to allow chaining.
*/
dispose: function() {
// Undelegating events, removing events from the model, and
@@ -52,7 +52,7 @@ var View = wp.Backbone.View.extend(/** @lends wp.media.View.prototype */{
return this;
},
/**
- * @returns {wp.media.View} Returns itself to allow chaining.
+ * @return {wp.media.View} Returns itself to allow chaining.
*/
remove: function() {
this.dispose();