From b8f24489bd2a54decec35dcbd3be7eb3ebfc6591 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 22 Feb 2015 06:27:45 +0000 Subject: [PATCH] After [30120], in media JS files, move from `@constructor` to `@class` annotations as per JSDoc preferred nomenclature: http://usejsdoc.org/tags-class.html See #28510, #30193. git-svn-id: https://develop.svn.wordpress.org/trunk@31490 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media/audio-video.js | 18 +++++++++--------- .../js/media/controllers/audio-details.js | 2 +- .../controllers/edit-attachment-metadata.js | 2 +- .../js/media/controllers/video-details.js | 2 +- src/wp-includes/js/media/grid.js | 14 +++++++------- src/wp-includes/js/media/models/post-media.js | 2 +- src/wp-includes/js/media/routers/manage.js | 2 +- .../views/attachment/details-two-column.js | 2 +- .../js/media/views/audio-details.js | 2 +- .../button/delete-selected-permanently.js | 2 +- .../js/media/views/button/delete-selected.js | 2 +- .../js/media/views/frame/audio-details.js | 2 +- .../js/media/views/frame/edit-attachments.js | 2 +- src/wp-includes/js/media/views/frame/manage.js | 2 +- .../js/media/views/frame/media-details.js | 2 +- .../js/media/views/frame/video-details.js | 2 +- .../js/media/views/media-details.js | 2 +- .../js/media/views/video-details.js | 2 +- 18 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/wp-includes/js/media/audio-video.js b/src/wp-includes/js/media/audio-video.js index 836ddda37a..b3fd3935f4 100644 --- a/src/wp-includes/js/media/audio-video.js +++ b/src/wp-includes/js/media/audio-video.js @@ -219,7 +219,7 @@ media.view.VideoDetails = require( './views/video-details.js' ); /** * The controller for the Audio Details state * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ @@ -1118,7 +1118,7 @@ module.exports = State; /** * The controller for the Video Details state * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ @@ -1150,7 +1150,7 @@ module.exports = VideoDetails; * Shared model class for audio and video. Updates the model after * "Add Audio|Video Source" and "Replace Audio|Video" states return * - * @constructor + * @class * @augments Backbone.Model */ var PostMedia = Backbone.Model.extend({ @@ -3085,7 +3085,7 @@ module.exports = AttachmentsBrowser; /** * wp.media.view.AudioDetails * - * @constructor + * @class * @augments wp.media.view.MediaDetails * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings @@ -3433,7 +3433,7 @@ module.exports = Frame; /** * wp.media.view.MediaFrame.AudioDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.MediaDetails * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame @@ -3510,7 +3510,7 @@ module.exports = AudioDetails; /** * wp.media.view.MediaFrame.MediaDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame * @augments wp.media.view.Frame @@ -3816,7 +3816,7 @@ module.exports = Select; /** * wp.media.view.MediaFrame.VideoDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.MediaDetails * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame @@ -4009,7 +4009,7 @@ module.exports = Label; /** * wp.media.view.MediaDetails * - * @constructor + * @class * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings * @augments wp.media.View @@ -5954,7 +5954,7 @@ module.exports = UploaderWindow; /** * wp.media.view.VideoDetails * - * @constructor + * @class * @augments wp.media.view.MediaDetails * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings diff --git a/src/wp-includes/js/media/controllers/audio-details.js b/src/wp-includes/js/media/controllers/audio-details.js index 71c0bde019..d5d10e48d4 100644 --- a/src/wp-includes/js/media/controllers/audio-details.js +++ b/src/wp-includes/js/media/controllers/audio-details.js @@ -1,7 +1,7 @@ /** * The controller for the Audio Details state * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ diff --git a/src/wp-includes/js/media/controllers/edit-attachment-metadata.js b/src/wp-includes/js/media/controllers/edit-attachment-metadata.js index 4006a32041..8cfa860cf5 100644 --- a/src/wp-includes/js/media/controllers/edit-attachment-metadata.js +++ b/src/wp-includes/js/media/controllers/edit-attachment-metadata.js @@ -3,7 +3,7 @@ * * A state for editing an attachment's metadata. * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ diff --git a/src/wp-includes/js/media/controllers/video-details.js b/src/wp-includes/js/media/controllers/video-details.js index b26e174ca4..6c5acd4795 100644 --- a/src/wp-includes/js/media/controllers/video-details.js +++ b/src/wp-includes/js/media/controllers/video-details.js @@ -1,7 +1,7 @@ /** * The controller for the Video Details state * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ diff --git a/src/wp-includes/js/media/grid.js b/src/wp-includes/js/media/grid.js index 782881edb4..b19ffecd49 100644 --- a/src/wp-includes/js/media/grid.js +++ b/src/wp-includes/js/media/grid.js @@ -4,7 +4,7 @@ * * A state for editing an attachment's metadata. * - * @constructor + * @class * @augments wp.media.controller.State * @augments Backbone.Model */ @@ -940,7 +940,7 @@ media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-sel /** * A router for handling the browser history and application state. * - * @constructor + * @class * @augments Backbone.Router */ var Router = Backbone.Router.extend({ @@ -1965,7 +1965,7 @@ module.exports = Attachment; * A similar view to media.view.Attachment.Details * for use in the Edit Attachment modal. * - * @constructor + * @class * @augments wp.media.view.Attachment.Details * @augments wp.media.view.Attachment * @augments wp.media.View @@ -3014,7 +3014,7 @@ module.exports = Button; /** * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic * - * @constructor + * @class * @augments wp.media.view.DeleteSelectedButton * @augments wp.media.view.Button * @augments wp.media.View @@ -3059,7 +3059,7 @@ module.exports = DeleteSelectedPermanently; /** * A button that handles bulk Delete/Trash logic * - * @constructor + * @class * @augments wp.media.view.Button * @augments wp.media.View * @augments wp.Backbone.View @@ -3418,7 +3418,7 @@ module.exports = Frame; * * Requires an attachment model to be passed in the options hash under `model`. * - * @constructor + * @class * @augments wp.media.view.Frame * @augments wp.media.View * @augments wp.Backbone.View @@ -3664,7 +3664,7 @@ module.exports = EditAttachments; * * Used in the media grid view. * - * @constructor + * @class * @augments wp.media.view.MediaFrame * @augments wp.media.view.Frame * @augments wp.media.View diff --git a/src/wp-includes/js/media/models/post-media.js b/src/wp-includes/js/media/models/post-media.js index 4b484f2e16..d9bfc5489a 100644 --- a/src/wp-includes/js/media/models/post-media.js +++ b/src/wp-includes/js/media/models/post-media.js @@ -2,7 +2,7 @@ * Shared model class for audio and video. Updates the model after * "Add Audio|Video Source" and "Replace Audio|Video" states return * - * @constructor + * @class * @augments Backbone.Model */ var PostMedia = Backbone.Model.extend({ diff --git a/src/wp-includes/js/media/routers/manage.js b/src/wp-includes/js/media/routers/manage.js index 00a227e6af..5f26736ed1 100644 --- a/src/wp-includes/js/media/routers/manage.js +++ b/src/wp-includes/js/media/routers/manage.js @@ -1,7 +1,7 @@ /** * A router for handling the browser history and application state. * - * @constructor + * @class * @augments Backbone.Router */ var Router = Backbone.Router.extend({ diff --git a/src/wp-includes/js/media/views/attachment/details-two-column.js b/src/wp-includes/js/media/views/attachment/details-two-column.js index 5de1cd6e35..07d0e17236 100644 --- a/src/wp-includes/js/media/views/attachment/details-two-column.js +++ b/src/wp-includes/js/media/views/attachment/details-two-column.js @@ -4,7 +4,7 @@ * A similar view to media.view.Attachment.Details * for use in the Edit Attachment modal. * - * @constructor + * @class * @augments wp.media.view.Attachment.Details * @augments wp.media.view.Attachment * @augments wp.media.View diff --git a/src/wp-includes/js/media/views/audio-details.js b/src/wp-includes/js/media/views/audio-details.js index 81f17db7f0..1d4c5644ef 100644 --- a/src/wp-includes/js/media/views/audio-details.js +++ b/src/wp-includes/js/media/views/audio-details.js @@ -1,7 +1,7 @@ /** * wp.media.view.AudioDetails * - * @constructor + * @class * @augments wp.media.view.MediaDetails * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings diff --git a/src/wp-includes/js/media/views/button/delete-selected-permanently.js b/src/wp-includes/js/media/views/button/delete-selected-permanently.js index 386e65a881..a253c7bf68 100644 --- a/src/wp-includes/js/media/views/button/delete-selected-permanently.js +++ b/src/wp-includes/js/media/views/button/delete-selected-permanently.js @@ -1,7 +1,7 @@ /** * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic * - * @constructor + * @class * @augments wp.media.view.DeleteSelectedButton * @augments wp.media.view.Button * @augments wp.media.View diff --git a/src/wp-includes/js/media/views/button/delete-selected.js b/src/wp-includes/js/media/views/button/delete-selected.js index d1b207932d..f2bed7c370 100644 --- a/src/wp-includes/js/media/views/button/delete-selected.js +++ b/src/wp-includes/js/media/views/button/delete-selected.js @@ -1,7 +1,7 @@ /** * A button that handles bulk Delete/Trash logic * - * @constructor + * @class * @augments wp.media.view.Button * @augments wp.media.View * @augments wp.Backbone.View diff --git a/src/wp-includes/js/media/views/frame/audio-details.js b/src/wp-includes/js/media/views/frame/audio-details.js index 27b4fdd51b..e0c0e12612 100644 --- a/src/wp-includes/js/media/views/frame/audio-details.js +++ b/src/wp-includes/js/media/views/frame/audio-details.js @@ -1,7 +1,7 @@ /** * wp.media.view.MediaFrame.AudioDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.MediaDetails * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame diff --git a/src/wp-includes/js/media/views/frame/edit-attachments.js b/src/wp-includes/js/media/views/frame/edit-attachments.js index c0d9ca785a..b9cc280383 100644 --- a/src/wp-includes/js/media/views/frame/edit-attachments.js +++ b/src/wp-includes/js/media/views/frame/edit-attachments.js @@ -5,7 +5,7 @@ * * Requires an attachment model to be passed in the options hash under `model`. * - * @constructor + * @class * @augments wp.media.view.Frame * @augments wp.media.View * @augments wp.Backbone.View diff --git a/src/wp-includes/js/media/views/frame/manage.js b/src/wp-includes/js/media/views/frame/manage.js index 55c27bbfa7..1fc8313176 100644 --- a/src/wp-includes/js/media/views/frame/manage.js +++ b/src/wp-includes/js/media/views/frame/manage.js @@ -5,7 +5,7 @@ * * Used in the media grid view. * - * @constructor + * @class * @augments wp.media.view.MediaFrame * @augments wp.media.view.Frame * @augments wp.media.View diff --git a/src/wp-includes/js/media/views/frame/media-details.js b/src/wp-includes/js/media/views/frame/media-details.js index a51b85cfb9..dee5adc781 100644 --- a/src/wp-includes/js/media/views/frame/media-details.js +++ b/src/wp-includes/js/media/views/frame/media-details.js @@ -1,7 +1,7 @@ /** * wp.media.view.MediaFrame.MediaDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame * @augments wp.media.view.Frame diff --git a/src/wp-includes/js/media/views/frame/video-details.js b/src/wp-includes/js/media/views/frame/video-details.js index aafba7b55d..44cfd0ac3e 100644 --- a/src/wp-includes/js/media/views/frame/video-details.js +++ b/src/wp-includes/js/media/views/frame/video-details.js @@ -1,7 +1,7 @@ /** * wp.media.view.MediaFrame.VideoDetails * - * @constructor + * @class * @augments wp.media.view.MediaFrame.MediaDetails * @augments wp.media.view.MediaFrame.Select * @augments wp.media.view.MediaFrame diff --git a/src/wp-includes/js/media/views/media-details.js b/src/wp-includes/js/media/views/media-details.js index 68e9c9739b..47eb20a038 100644 --- a/src/wp-includes/js/media/views/media-details.js +++ b/src/wp-includes/js/media/views/media-details.js @@ -3,7 +3,7 @@ /** * wp.media.view.MediaDetails * - * @constructor + * @class * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings * @augments wp.media.View diff --git a/src/wp-includes/js/media/views/video-details.js b/src/wp-includes/js/media/views/video-details.js index 07010a6c12..859df484e8 100644 --- a/src/wp-includes/js/media/views/video-details.js +++ b/src/wp-includes/js/media/views/video-details.js @@ -1,7 +1,7 @@ /** * wp.media.view.VideoDetails * - * @constructor + * @class * @augments wp.media.view.MediaDetails * @augments wp.media.view.Settings.AttachmentDisplay * @augments wp.media.view.Settings