Media JS files:

* specify globals in more files
* add missing `wp.media.*` namespace docs
* add doc blocks to files that had none

See #28510.

Built from https://develop.svn.wordpress.org/trunk@31492


git-svn-id: http://core.svn.wordpress.org/trunk@31473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-02-22 07:25:27 +00:00
parent 9737acc1a5
commit d9a2e85bfe
34 changed files with 189 additions and 23 deletions

View File

@ -1365,7 +1365,7 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":51}],12:[function(require,module,exports){
/*globals _ */
/*globals _, jQuery */
/**
* wp.media.view.AttachmentFilters
@ -1445,6 +1445,8 @@ AttachmentFilters = View.extend({
module.exports = AttachmentFilters;
},{"./view.js":51}],13:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.All
*
@ -1580,6 +1582,8 @@ DateFilter = AttachmentFilters.extend({
module.exports = DateFilter;
},{"../attachment-filters.js":12}],15:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.Uploaded
*
@ -2359,7 +2363,7 @@ Library = Attachment.extend({
module.exports = Library;
},{"../attachment.js":16}],19:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachments
@ -4032,6 +4036,8 @@ module.exports = Iframe;
},{"./view.js":51}],30:[function(require,module,exports){
/**
* wp.media.view.Label
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
@ -4482,6 +4488,8 @@ _.each(['open','close','attach','detach','escape'], function( method ) {
module.exports = MediaFrame;
},{"./frame.js":24,"./iframe.js":29,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":49,"./view.js":51}],33:[function(require,module,exports){
/*globals jQuery */
/**
* wp.media.view.MenuItem
*
@ -4672,7 +4680,7 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Modal
@ -5056,6 +5064,8 @@ Router = Menu.extend({
module.exports = Router;
},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.Search
*
@ -5753,6 +5763,8 @@ UploaderInline = View.extend({
module.exports = UploaderInline;
},{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.UploaderStatusError
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.controller.EditAttachmentMetadata
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.controller.EditImage
*

View File

@ -1,6 +1,8 @@
/*globals wp, _ */
/**
* wp.media.controller.GalleryAdd
*
* A state for selecting more images to add to a gallery.
*
* @class

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.controller.GalleryEdit
*

View File

@ -1,4 +1,6 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.EditAttachmentMetadata
*
@ -28,6 +30,8 @@ EditAttachmentMetadata = State.extend({
module.exports = EditAttachmentMetadata;
},{"./state.js":6}],2:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.EditImage
*
@ -932,6 +936,8 @@ _.each(['toolbar','content'], function( region ) {
module.exports = State;
},{}],7:[function(require,module,exports){
/*globals wp */
var media = wp.media;
media.controller.EditAttachmentMetadata = require( './controllers/edit-attachment-metadata.js' );
@ -948,6 +954,8 @@ media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-sel
/*globals wp, Backbone */
/**
* wp.media.view.MediaFrame.Manage.Router
*
* A router for handling the browser history and application state.
*
* @class
@ -1148,7 +1156,7 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":49}],11:[function(require,module,exports){
/*globals _ */
/*globals _, jQuery */
/**
* wp.media.view.AttachmentFilters
@ -1228,6 +1236,8 @@ AttachmentFilters = View.extend({
module.exports = AttachmentFilters;
},{"./view.js":49}],12:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.All
*
@ -1363,6 +1373,8 @@ DateFilter = AttachmentFilters.extend({
module.exports = DateFilter;
},{"../attachment-filters.js":11}],14:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.Uploaded
*
@ -1982,6 +1994,8 @@ module.exports = Attachment;
/*globals wp */
/**
* wp.media.view.Attachment.Details.TwoColumn
*
* A similar view to media.view.Attachment.Details
* for use in the Edit Attachment modal.
*
@ -2185,7 +2199,7 @@ Library = Attachment.extend({
module.exports = Library;
},{"../attachment.js":15}],19:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachments
@ -3040,6 +3054,8 @@ module.exports = Button;
},{"./view.js":49}],22:[function(require,module,exports){
/**
* wp.media.view.DeleteSelectedPermanentlyButton
*
* When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
*
* @class
@ -3084,7 +3100,11 @@ DeleteSelectedPermanently = DeleteSelected.extend({
module.exports = DeleteSelectedPermanently;
},{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.DeleteSelectedButton
*
* A button that handles bulk Delete/Trash logic
*
* @class
@ -3135,6 +3155,17 @@ DeleteSelected = Button.extend({
module.exports = DeleteSelected;
},{"../button.js":21}],24:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.SelectModeToggleButton
*
* @class
* @augments wp.media.view.Button
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var Button = require( '../button.js' ),
l10n = wp.media.view.l10n,
SelectModeToggle;
@ -3192,6 +3223,15 @@ module.exports = SelectModeToggle;
},{"../button.js":21}],25:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.EditImage.Details
*
* @class
* @augments wp.media.view.EditImage.Details
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var View = require( './view.js' ),
EditImage = wp.media.view.EditImage,
Details;
@ -3441,9 +3481,11 @@ _.extend( Frame.prototype, StateMachine.prototype );
module.exports = Frame;
},{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":49}],28:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.MediaFrame.EditAttachments
*
* A frame for editing the details of a specific media item.
*
* Opens in a modal by default.
@ -3966,6 +4008,8 @@ module.exports = Iframe;
},{"./view.js":49}],31:[function(require,module,exports){
/**
* wp.media.view.Label
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
@ -4248,6 +4292,8 @@ _.each(['open','close','attach','detach','escape'], function( method ) {
module.exports = MediaFrame;
},{"./frame.js":27,"./iframe.js":30,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":48,"./view.js":49}],33:[function(require,module,exports){
/*globals jQuery */
/**
* wp.media.view.MenuItem
*
@ -4438,7 +4484,7 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Modal
@ -4822,6 +4868,8 @@ Router = Menu.extend({
module.exports = Router;
},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.Search
*
@ -5447,6 +5495,8 @@ UploaderInline = View.extend({
module.exports = UploaderInline;
},{"../view.js":49,"./status.js":47}],46:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.UploaderStatusError
*

View File

@ -1,3 +1,5 @@
/*globals wp */
var media = wp.media;
media.controller.EditAttachmentMetadata = require( './controllers/edit-attachment-metadata.js' );

View File

@ -1,6 +1,8 @@
/*globals wp, Backbone */
/**
* wp.media.view.MediaFrame.Manage.Router
*
* A router for handling the browser history and application state.
*
* @class

View File

@ -387,6 +387,8 @@ Cropper = State.extend({
module.exports = Cropper;
},{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.EditImage
*
@ -731,6 +733,8 @@ module.exports = FeaturedImage;
/*globals wp, _ */
/**
* wp.media.controller.GalleryAdd
*
* A state for selecting more images to add to a gallery.
*
* @class
@ -819,6 +823,8 @@ GalleryAdd = Library.extend({
module.exports = GalleryAdd;
},{"./library.js":10}],8:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.GalleryEdit
*
@ -2317,7 +2323,7 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":71}],19:[function(require,module,exports){
/*globals _ */
/*globals _, jQuery */
/**
* wp.media.view.AttachmentFilters
@ -2397,6 +2403,8 @@ AttachmentFilters = View.extend({
module.exports = AttachmentFilters;
},{"./view.js":71}],20:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.All
*
@ -2532,6 +2540,8 @@ DateFilter = AttachmentFilters.extend({
module.exports = DateFilter;
},{"../attachment-filters.js":19}],22:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AttachmentFilters.Uploaded
*
@ -3379,7 +3389,7 @@ Selection = Attachment.extend({
module.exports = Selection;
},{"../attachment.js":23}],29:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachments
@ -4175,7 +4185,7 @@ Selection = Attachments.extend({
module.exports = Selection;
},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
/*globals _, Backbone */
/*globals _, Backbone, jQuery */
/**
* wp.media.view.ButtonGroup
@ -4388,6 +4398,14 @@ module.exports = Cropper;
},{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.EditImage
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var View = require( './view.js' ),
EditImage;
@ -4506,6 +4524,8 @@ Embed = View.extend({
module.exports = Embed;
},{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.EmbedImage
*
@ -4539,7 +4559,7 @@ EmbedImage = AttachmentDisplay.extend({
module.exports = EmbedImage;
},{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.EmbedLink
@ -4608,7 +4628,7 @@ EmbedLink = Settings.extend({
module.exports = EmbedLink;
},{"../settings.js":57}],39:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.EmbedUrl
@ -4912,6 +4932,8 @@ _.extend( Frame.prototype, StateMachine.prototype );
module.exports = Frame;
},{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.MediaFrame.ImageDetails
*
@ -6051,7 +6073,7 @@ Iframe = View.extend({
module.exports = Iframe;
},{"./view.js":71}],46:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.ImageDetails
@ -6222,6 +6244,8 @@ module.exports = ImageDetails;
},{"./settings/attachment-display.js":58}],47:[function(require,module,exports){
/**
* wp.media.view.Label
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
@ -6504,6 +6528,8 @@ _.each(['open','close','attach','detach','escape'], function( method ) {
module.exports = MediaFrame;
},{"./frame.js":41,"./iframe.js":45,"./menu.js":50,"./modal.js":51,"./router.js":54,"./toolbar.js":63,"./uploader/window.js":70,"./view.js":71}],49:[function(require,module,exports){
/*globals jQuery */
/**
* wp.media.view.MenuItem
*
@ -6694,7 +6720,7 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Modal
@ -7078,6 +7104,8 @@ Router = Menu.extend({
module.exports = Router;
},{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.Search
*
@ -7433,6 +7461,8 @@ AttachmentDisplay = Settings.extend({
module.exports = AttachmentDisplay;
},{"../settings.js":57}],59:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.Settings.Gallery
*
@ -7453,6 +7483,8 @@ Gallery = Settings.extend({
module.exports = Gallery;
},{"../settings.js":57}],60:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.Settings.Playlist
*
@ -8162,6 +8194,8 @@ UploaderInline = View.extend({
module.exports = UploaderInline;
},{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.UploaderStatusError
*

View File

@ -1,4 +1,4 @@
/*globals _ */
/*globals _, jQuery */
/**
* wp.media.view.AttachmentFilters

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.AttachmentFilters.All
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.AttachmentFilters.Uploaded
*

View File

@ -1,6 +1,8 @@
/*globals wp */
/**
* wp.media.view.Attachment.Details.TwoColumn
*
* A similar view to media.view.Attachment.Details
* for use in the Edit Attachment modal.
*

View File

@ -1,4 +1,4 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachments

View File

@ -1,4 +1,4 @@
/*globals _, Backbone */
/*globals _, Backbone, jQuery */
/**
* wp.media.view.ButtonGroup

View File

@ -1,4 +1,6 @@
/**
* wp.media.view.DeleteSelectedPermanentlyButton
*
* When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
*
* @class

View File

@ -1,4 +1,8 @@
/*globals wp */
/**
* wp.media.view.DeleteSelectedButton
*
* A button that handles bulk Delete/Trash logic
*
* @class

View File

@ -1,3 +1,14 @@
/*globals wp */
/**
* wp.media.view.SelectModeToggleButton
*
* @class
* @augments wp.media.view.Button
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var Button = require( '../button.js' ),
l10n = wp.media.view.l10n,
SelectModeToggle;

View File

@ -1,5 +1,14 @@
/*globals wp, _ */
/**
* wp.media.view.EditImage.Details
*
* @class
* @augments wp.media.view.EditImage.Details
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var View = require( './view.js' ),
EditImage = wp.media.view.EditImage,
Details;

View File

@ -1,5 +1,13 @@
/*globals wp, _ */
/**
* wp.media.view.EditImage
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var View = require( './view.js' ),
EditImage;

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.EmbedImage
*

View File

@ -1,4 +1,4 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.EmbedLink

View File

@ -1,4 +1,4 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.EmbedUrl

View File

@ -1,6 +1,8 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.MediaFrame.EditAttachments
*
* A frame for editing the details of a specific media item.
*
* Opens in a modal by default.

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.MediaFrame.ImageDetails
*

View File

@ -1,4 +1,4 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.ImageDetails

View File

@ -1,4 +1,6 @@
/**
* wp.media.view.Label
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View

View File

@ -1,3 +1,5 @@
/*globals jQuery */
/**
* wp.media.view.MenuItem
*

View File

@ -1,4 +1,4 @@
/*globals wp, _ */
/*globals wp, _, jQuery */
/**
* wp.media.view.Modal

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.Search
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.Settings.Gallery
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.Settings.Playlist
*

View File

@ -1,3 +1,5 @@
/*globals wp */
/**
* wp.media.view.UploaderStatusError
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31491';
$wp_version = '4.2-alpha-31492';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.