summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/media/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/media/controllers')
-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
7 files changed, 30 insertions, 30 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`