Specify globals in media JS files - it is important to denote where we are diverging from dependency injection.

See #28510.

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


git-svn-id: http://core.svn.wordpress.org/trunk@31472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-02-22 06:56:27 +00:00
parent 8b54658f0c
commit 9737acc1a5
73 changed files with 387 additions and 5 deletions

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, _ */
var media = wp.media,
baseSettings = window._wpmejsSettings || {},
l10n = window._wpMediaViewsL10n || {};
@ -216,7 +218,11 @@ media.view.AudioDetails = require( './views/audio-details.js' );
media.view.VideoDetails = require( './views/video-details.js' );
},{"./controllers/audio-details.js":2,"./controllers/video-details.js":8,"./models/post-media.js":9,"./views/audio-details.js":21,"./views/frame/audio-details.js":25,"./views/frame/media-details.js":26,"./views/frame/video-details.js":28,"./views/media-details.js":31,"./views/video-details.js":50}],2:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.AudioDetails
*
* The controller for the Audio Details state
*
* @class
@ -247,6 +253,8 @@ AudioDetails = State.extend({
module.exports = AudioDetails;
},{"./state.js":7}],3:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.controller.Library
*
@ -521,6 +529,8 @@ _.extend( Library.prototype, selectionSync );
module.exports = Library;
},{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.controller.MediaLibrary
*
@ -571,6 +581,8 @@ MediaLibrary = Library.extend({
module.exports = MediaLibrary;
},{"./library.js":3}],5:[function(require,module,exports){
/*globals Backbone, _ */
/**
* wp.media.controller.Region
*
@ -750,6 +762,8 @@ _.extend( Region.prototype, {
module.exports = Region;
},{}],6:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.StateMachine
*
@ -874,6 +888,8 @@ _.each([ 'on', 'off', 'trigger' ], function( method ) {
module.exports = StateMachine;
},{}],7:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.State
*
@ -1115,7 +1131,11 @@ _.each(['toolbar','content'], function( region ) {
module.exports = State;
},{}],8:[function(require,module,exports){
/*globals wp */
/**
* wp.media.controller.VideoDetails
*
* The controller for the Video Details state
*
* @class
@ -1146,7 +1166,11 @@ VideoDetails = State.extend({
module.exports = VideoDetails;
},{"./state.js":7}],9:[function(require,module,exports){
/*globals wp, Backbone, _ */
/**
* wp.media.model.PostMedia
*
* Shared model class for audio and video. Updates the model after
* "Add Audio|Video Source" and "Replace Audio|Video" states return
*
@ -1186,6 +1210,8 @@ var PostMedia = Backbone.Model.extend({
module.exports = PostMedia;
},{}],10:[function(require,module,exports){
/*globals _ */
/**
* wp.media.selectionSync
*
@ -1252,6 +1278,8 @@ var selectionSync = {
module.exports = selectionSync;
},{}],11:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentCompat
*
@ -1337,6 +1365,8 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":51}],12:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentFilters
*
@ -1506,6 +1536,8 @@ All = AttachmentFilters.extend({
module.exports = All;
},{"../attachment-filters.js":12}],14:[function(require,module,exports){
/*globals wp, _ */
/**
* A filter dropdown for month/dates.
*
@ -1608,6 +1640,8 @@ Uploaded = AttachmentFilters.extend({
module.exports = Uploaded;
},{"../attachment-filters.js":12}],16:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachment
*
@ -2162,6 +2196,8 @@ _.each({
module.exports = Attachment;
},{"./view.js":51}],17:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachment.Details
*
@ -2323,6 +2359,8 @@ Library = Attachment.extend({
module.exports = Library;
},{"../attachment.js":16}],19:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachments
*
@ -2623,6 +2661,8 @@ Attachments = View.extend({
module.exports = Attachments;
},{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.AttachmentsBrowser
*
@ -3082,6 +3122,8 @@ AttachmentsBrowser = View.extend({
module.exports = AttachmentsBrowser;
},{"../attachment-compat.js":11,"../attachment-filters/all.js":13,"../attachment-filters/date.js":14,"../attachment-filters/uploaded.js":15,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":30,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":46,"../uploader/status.js":48,"../view.js":51}],21:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.AudioDetails
*
@ -3120,6 +3162,8 @@ AudioDetails = MediaDetails.extend({
module.exports = AudioDetails;
},{"./media-details":31}],22:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Button
*
@ -3258,6 +3302,8 @@ FocusManager = View.extend({
module.exports = FocusManager;
},{"./view.js":51}],24:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Frame
*
@ -3430,6 +3476,8 @@ _.extend( Frame.prototype, StateMachine.prototype );
module.exports = Frame;
},{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.MediaFrame.AudioDetails
*
@ -3507,6 +3555,8 @@ AudioDetails = MediaDetails.extend({
module.exports = AudioDetails;
},{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.MediaFrame.MediaDetails
*
@ -3639,6 +3689,8 @@ MediaDetails = Select.extend({
module.exports = MediaDetails;
},{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.MediaFrame.Select
*
@ -3813,6 +3865,8 @@ Select = MediaFrame.extend({
module.exports = Select;
},{"../../controllers/library.js":3,"../attachments/browser.js":20,"../media-frame.js":32,"../toolbar/select.js":45,"../uploader/inline.js":46}],28:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.MediaFrame.VideoDetails
*
@ -4004,7 +4058,7 @@ Label = View.extend({
module.exports = Label;
},{"./view.js":51}],31:[function(require,module,exports){
/*global wp, MediaElementPlayer */
/*global wp, jQuery, _, MediaElementPlayer */
/**
* wp.media.view.MediaDetails
@ -4172,6 +4226,8 @@ MediaDetails = AttachmentDisplay.extend({
module.exports = MediaDetails;
},{"./settings/attachment-display.js":41}],32:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.MediaFrame
*
@ -4616,6 +4672,8 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Modal
*
@ -4831,6 +4889,8 @@ Modal = View.extend({
module.exports = Modal;
},{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.PriorityList
*
@ -5045,6 +5105,8 @@ Search = View.extend({
module.exports = Search;
},{"./view.js":51}],40:[function(require,module,exports){
/*globals _, jQuery, Backbone */
/**
* wp.media.view.Settings
*
@ -5166,6 +5228,8 @@ Settings = View.extend({
module.exports = Settings;
},{"./view.js":51}],41:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Settings.AttachmentDisplay
*
@ -5279,6 +5343,8 @@ Sidebar = PriorityList.extend({
module.exports = Sidebar;
},{"./priority-list.js":36}],43:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.Spinner
*
@ -5317,6 +5383,8 @@ Spinner = View.extend({
module.exports = Spinner;
},{"./view.js":51}],44:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Toolbar
*
@ -5479,6 +5547,8 @@ Toolbar = View.extend({
module.exports = Toolbar;
},{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Toolbar.Select
*
@ -5549,6 +5619,8 @@ Select = Toolbar.extend({
module.exports = Select;
},{"../toolbar.js":44}],46:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderInline
*
@ -5700,6 +5772,8 @@ UploaderStatusError = View.extend({
module.exports = UploaderStatusError;
},{"../view.js":51}],48:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderStatus
*
@ -5839,6 +5913,8 @@ UploaderStatus = View.extend({
module.exports = UploaderStatus;
},{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.UploaderWindow
*
@ -5951,6 +6027,8 @@ UploaderWindow = View.extend({
module.exports = UploaderWindow;
},{"../view.js":51}],50:[function(require,module,exports){
/*globals wp */
/**
* wp.media.view.VideoDetails
*
@ -5994,6 +6072,8 @@ VideoDetails = MediaDetails.extend({
module.exports = VideoDetails;
},{"./media-details":31}],51:[function(require,module,exports){
/*globals wp */
/**
* wp.media.View
*

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
var media = wp.media,
baseSettings = window._wpmejsSettings || {},
l10n = window._wpMediaViewsL10n || {};

View File

@ -1,4 +1,8 @@
/*globals wp */
/**
* wp.media.controller.AudioDetails
*
* The controller for the Audio Details state
*
* @class

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _, Backbone */
/**
* wp.media.controller.Cropper
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, Backbone, jQuery */
/**
* wp.media.controller.Embed
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* A state for selecting more images to add to a gallery.
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _, Backbone */
/**
* wp.media.controller.Library
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals Backbone, _ */
/**
* wp.media.controller.Region
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.controller.StateMachine
*

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.controller.State
*

View File

@ -1,4 +1,8 @@
/*globals wp */
/**
* wp.media.controller.VideoDetails
*
* The controller for the Video Details state
*
* @class

View File

@ -106,6 +106,8 @@ EditImage = State.extend({
module.exports = EditImage;
},{"../views/toolbar.js":44,"./state.js":6}],3:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.controller.Library
*
@ -380,6 +382,8 @@ _.extend( Library.prototype, selectionSync );
module.exports = Library;
},{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){
/*globals Backbone, _ */
/**
* wp.media.controller.Region
*
@ -559,6 +563,8 @@ _.extend( Region.prototype, {
module.exports = Region;
},{}],5:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.StateMachine
*
@ -683,6 +689,8 @@ _.each([ 'on', 'off', 'trigger' ], function( method ) {
module.exports = StateMachine;
},{}],6:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.State
*
@ -937,6 +945,8 @@ media.view.DeleteSelectedButton = require( './views/button/delete-selected.js' )
media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' );
},{"./controllers/edit-attachment-metadata.js":1,"./routers/manage.js":8,"./views/attachment/details-two-column.js":16,"./views/button/delete-selected-permanently.js":22,"./views/button/delete-selected.js":23,"./views/button/select-mode-toggle.js":24,"./views/edit-image-details.js":25,"./views/frame/edit-attachments.js":28,"./views/frame/manage.js":29}],8:[function(require,module,exports){
/*globals wp, Backbone */
/**
* A router for handling the browser history and application state.
*
@ -983,6 +993,8 @@ var Router = Backbone.Router.extend({
module.exports = Router;
},{}],9:[function(require,module,exports){
/*globals _ */
/**
* wp.media.selectionSync
*
@ -1049,6 +1061,8 @@ var selectionSync = {
module.exports = selectionSync;
},{}],10:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentCompat
*
@ -1134,6 +1148,8 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":49}],11:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentFilters
*
@ -1303,6 +1319,8 @@ All = AttachmentFilters.extend({
module.exports = All;
},{"../attachment-filters.js":11}],13:[function(require,module,exports){
/*globals wp, _ */
/**
* A filter dropdown for month/dates.
*
@ -1405,6 +1423,8 @@ Uploaded = AttachmentFilters.extend({
module.exports = Uploaded;
},{"../attachment-filters.js":11}],15:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachment
*
@ -2002,6 +2022,8 @@ TwoColumn = Details.extend({
module.exports = TwoColumn;
},{"./details.js":17}],17:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachment.Details
*
@ -2163,6 +2185,8 @@ Library = Attachment.extend({
module.exports = Library;
},{"../attachment.js":15}],19:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachments
*
@ -2463,6 +2487,8 @@ Attachments = View.extend({
module.exports = Attachments;
},{"./attachment.js":15,"./view.js":49}],20:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.AttachmentsBrowser
*
@ -2922,6 +2948,8 @@ AttachmentsBrowser = View.extend({
module.exports = AttachmentsBrowser;
},{"../attachment-compat.js":10,"../attachment-filters/all.js":12,"../attachment-filters/date.js":13,"../attachment-filters/uploaded.js":14,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":31,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":45,"../uploader/status.js":47,"../view.js":49}],21:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Button
*
@ -3162,7 +3190,7 @@ SelectModeToggle = Button.extend({
module.exports = SelectModeToggle;
},{"../button.js":21}],25:[function(require,module,exports){
/*globals wp */
/*globals wp, _ */
var View = require( './view.js' ),
EditImage = wp.media.view.EditImage,
@ -3239,6 +3267,8 @@ FocusManager = View.extend({
module.exports = FocusManager;
},{"./view.js":49}],27:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Frame
*
@ -3411,6 +3441,8 @@ _.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, _ */
/**
* A frame for editing the details of a specific media item.
*
@ -3657,6 +3689,8 @@ EditAttachments = MediaFrame.extend({
module.exports = EditAttachments;
},{"../../controllers/edit-attachment-metadata.js":1,"../../controllers/edit-image.js":2,"../attachment-compat.js":10,"../attachment/details-two-column.js":16,"../edit-image-details.js":25,"../frame.js":27,"../media-frame.js":32,"../modal.js":35}],29:[function(require,module,exports){
/*globals wp, _, jQuery, Backbone */
/**
* wp.media.view.MediaFrame.Manage
*
@ -3958,6 +3992,8 @@ Label = View.extend({
module.exports = Label;
},{"./view.js":49}],32:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.MediaFrame
*
@ -4402,6 +4438,8 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Modal
*
@ -4617,6 +4655,8 @@ Modal = View.extend({
module.exports = Modal;
},{"./focus-manager.js":26,"./view.js":49}],36:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.PriorityList
*
@ -4831,6 +4871,8 @@ Search = View.extend({
module.exports = Search;
},{"./view.js":49}],40:[function(require,module,exports){
/*globals _, jQuery, Backbone */
/**
* wp.media.view.Settings
*
@ -4952,6 +4994,8 @@ Settings = View.extend({
module.exports = Settings;
},{"./view.js":49}],41:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Settings.AttachmentDisplay
*
@ -5065,6 +5109,8 @@ Sidebar = PriorityList.extend({
module.exports = Sidebar;
},{"./priority-list.js":36}],43:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.Spinner
*
@ -5103,6 +5149,8 @@ Spinner = View.extend({
module.exports = Spinner;
},{"./view.js":49}],44:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Toolbar
*
@ -5265,6 +5313,8 @@ Toolbar = View.extend({
module.exports = Toolbar;
},{"./button.js":21,"./priority-list.js":36,"./view.js":49}],45:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderInline
*
@ -5416,6 +5466,8 @@ UploaderStatusError = View.extend({
module.exports = UploaderStatusError;
},{"../view.js":49}],47:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderStatus
*
@ -5555,6 +5607,8 @@ UploaderStatus = View.extend({
module.exports = UploaderStatus;
},{"../view.js":49,"./status-error.js":46}],48:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.UploaderWindow
*
@ -5667,6 +5721,8 @@ UploaderWindow = View.extend({
module.exports = UploaderWindow;
},{"../view.js":49}],49:[function(require,module,exports){
/*globals wp */
/**
* wp.media.View
*

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, _, jQuery */
var $ = jQuery,
Attachment, Attachments, l10n, media;
@ -230,6 +232,8 @@ $(window).on('unload', function(){
});
},{"./models/attachment.js":2,"./models/attachments.js":3,"./models/post-image.js":4,"./models/query.js":5,"./models/selection.js":6}],2:[function(require,module,exports){
/*globals wp, _, jQuery, Backbone */
/**
* wp.media.model.Attachment
*
@ -398,6 +402,8 @@ Attachment = Backbone.Model.extend({
module.exports = Attachment;
},{"./attachments.js":3}],3:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.model.Attachments
*
@ -934,6 +940,8 @@ Attachments = Backbone.Collection.extend({
module.exports = Attachments;
},{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){
/*globals Backbone */
/**
* wp.media.model.PostImage
*
@ -1090,6 +1098,8 @@ PostImage = Backbone.Model.extend({
module.exports = PostImage;
},{"./attachment":2}],5:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.model.Query
*
@ -1398,6 +1408,8 @@ Query = Attachments.extend({
module.exports = Query;
},{"./attachments.js":3}],6:[function(require,module,exports){
/*globals _ */
/**
* wp.media.model.Selection
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, jQuery */
var $ = jQuery,
Attachment, Attachments, l10n, media;

View File

@ -1,3 +1,5 @@
/*globals wp, _, jQuery, Backbone */
/**
* wp.media.model.Attachment
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, Backbone */
/**
* wp.media.model.Attachments
*

View File

@ -1,3 +1,5 @@
/*globals Backbone */
/**
* wp.media.model.PostImage
*

View File

@ -1,4 +1,8 @@
/*globals wp, Backbone, _ */
/**
* wp.media.model.PostMedia
*
* Shared model class for audio and video. Updates the model after
* "Add Audio|Video Source" and "Replace Audio|Video" states return
*

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* wp.media.model.Query
*

View File

@ -1,3 +1,5 @@
/*globals _ */
/**
* wp.media.model.Selection
*

View File

@ -1,3 +1,5 @@
/*globals wp, Backbone */
/**
* A router for handling the browser history and application state.
*

View File

@ -1,3 +1,5 @@
/*globals _ */
/**
* wp.media.selectionSync
*

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.CollectionAdd
*
@ -100,6 +102,8 @@ CollectionAdd = Library.extend({
module.exports = CollectionAdd;
},{"./library.js":10}],2:[function(require,module,exports){
/*globals wp, Backbone */
/**
* wp.media.controller.CollectionEdit
*
@ -262,6 +266,8 @@ CollectionEdit = Library.extend({
module.exports = CollectionEdit;
},{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.controller.Cropper
*
@ -459,6 +465,8 @@ EditImage = State.extend({
module.exports = EditImage;
},{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
/*globals wp, _, Backbone, jQuery */
/**
* wp.media.controller.Embed
*
@ -596,6 +604,8 @@ Embed = State.extend({
module.exports = Embed;
},{"./state.js":15}],6:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.controller.FeaturedImage
*
@ -718,6 +728,8 @@ FeaturedImage = Library.extend({
module.exports = FeaturedImage;
},{"./library.js":10}],7:[function(require,module,exports){
/*globals wp, _ */
/**
* A state for selecting more images to add to a gallery.
*
@ -949,6 +961,8 @@ GalleryEdit = Library.extend({
module.exports = GalleryEdit;
},{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.controller.ImageDetails
*
@ -1011,6 +1025,8 @@ ImageDetails = State.extend({
module.exports = ImageDetails;
},{"./library.js":10,"./state.js":15}],10:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.controller.Library
*
@ -1285,6 +1301,8 @@ _.extend( Library.prototype, selectionSync );
module.exports = Library;
},{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.controller.MediaLibrary
*
@ -1335,6 +1353,8 @@ MediaLibrary = Library.extend({
module.exports = MediaLibrary;
},{"./library.js":10}],12:[function(require,module,exports){
/*globals Backbone, _ */
/**
* wp.media.controller.Region
*
@ -1514,6 +1534,8 @@ _.extend( Region.prototype, {
module.exports = Region;
},{}],13:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.controller.ReplaceImage
*
@ -1622,6 +1644,8 @@ ReplaceImage = Library.extend({
module.exports = ReplaceImage;
},{"./library.js":10}],14:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.StateMachine
*
@ -1746,6 +1770,8 @@ _.each([ 'on', 'off', 'trigger' ], function( method ) {
module.exports = StateMachine;
},{}],15:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.controller.State
*
@ -1987,6 +2013,8 @@ _.each(['toolbar','content'], function( region ) {
module.exports = State;
},{}],16:[function(require,module,exports){
/*globals _ */
/**
* wp.media.selectionSync
*
@ -2053,6 +2081,8 @@ var selectionSync = {
module.exports = selectionSync;
},{}],17:[function(require,module,exports){
/*globals wp, jQuery, _, Backbone */
var media = wp.media,
$ = jQuery,
l10n;
@ -2200,6 +2230,8 @@ media.view.EditImage = require( './views/edit-image.js' );
media.view.Spinner = require( './views/spinner.js' );
},{"./controllers/collection-add.js":1,"./controllers/collection-edit.js":2,"./controllers/cropper.js":3,"./controllers/edit-image.js":4,"./controllers/embed.js":5,"./controllers/featured-image.js":6,"./controllers/gallery-add.js":7,"./controllers/gallery-edit.js":8,"./controllers/image-details.js":9,"./controllers/library.js":10,"./controllers/media-library.js":11,"./controllers/region.js":12,"./controllers/replace-image.js":13,"./controllers/state-machine.js":14,"./controllers/state.js":15,"./utils/selection-sync.js":16,"./views/attachment-compat.js":18,"./views/attachment-filters.js":19,"./views/attachment-filters/all.js":20,"./views/attachment-filters/date.js":21,"./views/attachment-filters/uploaded.js":22,"./views/attachment.js":23,"./views/attachment/details.js":24,"./views/attachment/edit-library.js":25,"./views/attachment/edit-selection.js":26,"./views/attachment/library.js":27,"./views/attachment/selection.js":28,"./views/attachments.js":29,"./views/attachments/browser.js":30,"./views/attachments/selection.js":31,"./views/button-group.js":32,"./views/button.js":33,"./views/cropper.js":34,"./views/edit-image.js":35,"./views/embed.js":36,"./views/embed/image.js":37,"./views/embed/link.js":38,"./views/embed/url.js":39,"./views/focus-manager.js":40,"./views/frame/image-details.js":42,"./views/frame/post.js":43,"./views/frame/select.js":44,"./views/iframe.js":45,"./views/image-details.js":46,"./views/label.js":47,"./views/media-frame.js":48,"./views/menu-item.js":49,"./views/menu.js":50,"./views/modal.js":51,"./views/priority-list.js":52,"./views/router-item.js":53,"./views/router.js":54,"./views/search.js":55,"./views/selection.js":56,"./views/settings.js":57,"./views/settings/attachment-display.js":58,"./views/settings/gallery.js":59,"./views/settings/playlist.js":60,"./views/sidebar.js":61,"./views/spinner.js":62,"./views/toolbar.js":63,"./views/toolbar/embed.js":64,"./views/toolbar/select.js":65,"./views/uploader/editor.js":66,"./views/uploader/inline.js":67,"./views/uploader/status-error.js":68,"./views/uploader/status.js":69,"./views/uploader/window.js":70,"./views/view.js":71}],18:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentCompat
*
@ -2285,6 +2317,8 @@ AttachmentCompat = View.extend({
module.exports = AttachmentCompat;
},{"./view.js":71}],19:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.AttachmentFilters
*
@ -2454,6 +2488,8 @@ All = AttachmentFilters.extend({
module.exports = All;
},{"../attachment-filters.js":19}],21:[function(require,module,exports){
/*globals wp, _ */
/**
* A filter dropdown for month/dates.
*
@ -2556,6 +2592,8 @@ Uploaded = AttachmentFilters.extend({
module.exports = Uploaded;
},{"../attachment-filters.js":19}],23:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.Attachment
*
@ -3110,6 +3148,8 @@ _.each({
module.exports = Attachment;
},{"./view.js":71}],24:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachment.Details
*
@ -3339,6 +3379,8 @@ Selection = Attachment.extend({
module.exports = Selection;
},{"../attachment.js":23}],29:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Attachments
*
@ -3639,6 +3681,8 @@ Attachments = View.extend({
module.exports = Attachments;
},{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.AttachmentsBrowser
*
@ -4098,6 +4142,8 @@ AttachmentsBrowser = View.extend({
module.exports = AttachmentsBrowser;
},{"../attachment-compat.js":18,"../attachment-filters/all.js":20,"../attachment-filters/date.js":21,"../attachment-filters/uploaded.js":22,"../attachment/details.js":24,"../attachment/library.js":27,"../attachments.js":29,"../label.js":47,"../search.js":55,"../settings/attachment-display.js":58,"../sidebar.js":61,"../spinner.js":62,"../toolbar.js":63,"../uploader/inline.js":67,"../uploader/status.js":69,"../view.js":71}],31:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.Attachments.Selection
*
@ -4129,6 +4175,8 @@ Selection = Attachments.extend({
module.exports = Selection;
},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.ButtonGroup
*
@ -4177,6 +4225,8 @@ ButtonGroup = View.extend({
module.exports = ButtonGroup;
},{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Button
*
@ -4266,6 +4316,8 @@ Button = View.extend({
module.exports = Button;
},{"./view.js":71}],34:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.Cropper
*
@ -4334,6 +4386,8 @@ Cropper = View.extend({
module.exports = Cropper;
},{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){
/*globals wp, _ */
var View = require( './view.js' ),
EditImage;
@ -4485,6 +4539,8 @@ EmbedImage = AttachmentDisplay.extend({
module.exports = EmbedImage;
},{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.EmbedLink
*
@ -4552,6 +4608,8 @@ EmbedLink = Settings.extend({
module.exports = EmbedLink;
},{"../settings.js":57}],39:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.EmbedUrl
*
@ -4680,6 +4738,8 @@ FocusManager = View.extend({
module.exports = FocusManager;
},{"./view.js":71}],41:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Frame
*
@ -5035,6 +5095,8 @@ ImageDetails = Select.extend({
module.exports = ImageDetails;
},{"../../controllers/edit-image.js":4,"../../controllers/image-details.js":9,"../../controllers/replace-image.js":13,"../edit-image.js":35,"../image-details.js":46,"../toolbar.js":63,"./select.js":44}],43:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.MediaFrame.Post
*
@ -5786,6 +5848,8 @@ Post = Select.extend({
module.exports = Post;
},{"../../controllers/collection-add.js":1,"../../controllers/collection-edit.js":2,"../../controllers/edit-image.js":4,"../../controllers/embed.js":5,"../../controllers/featured-image.js":6,"../../controllers/gallery-add.js":7,"../../controllers/gallery-edit.js":8,"../../controllers/library.js":10,"../attachment/edit-selection.js":26,"../attachments/browser.js":30,"../edit-image.js":35,"../embed.js":36,"../selection.js":56,"../settings/playlist.js":60,"../toolbar.js":63,"../toolbar/embed.js":64,"../view.js":71,"./select.js":44}],44:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.MediaFrame.Select
*
@ -5987,6 +6051,8 @@ Iframe = View.extend({
module.exports = Iframe;
},{"./view.js":71}],46:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.ImageDetails
*
@ -6182,6 +6248,8 @@ Label = View.extend({
module.exports = Label;
},{"./view.js":71}],48:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.MediaFrame
*
@ -6626,6 +6694,8 @@ Menu = PriorityList.extend({
module.exports = Menu;
},{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Modal
*
@ -6841,6 +6911,8 @@ Modal = View.extend({
module.exports = Modal;
},{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.PriorityList
*
@ -7055,6 +7127,8 @@ Search = View.extend({
module.exports = Search;
},{"./view.js":71}],56:[function(require,module,exports){
/*globals wp, _, Backbone */
/**
* wp.media.view.Selection
*
@ -7140,6 +7214,8 @@ Selection = View.extend({
module.exports = Selection;
},{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
/*globals _, jQuery, Backbone */
/**
* wp.media.view.Settings
*
@ -7261,6 +7337,8 @@ Settings = View.extend({
module.exports = Settings;
},{"./view.js":71}],58:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Settings.AttachmentDisplay
*
@ -7414,6 +7492,8 @@ Sidebar = PriorityList.extend({
module.exports = Sidebar;
},{"./priority-list.js":52}],62:[function(require,module,exports){
/*globals _ */
/**
* wp.media.view.Spinner
*
@ -7452,6 +7532,8 @@ Spinner = View.extend({
module.exports = Spinner;
},{"./view.js":71}],63:[function(require,module,exports){
/*globals _, Backbone */
/**
* wp.media.view.Toolbar
*
@ -7614,6 +7696,8 @@ Toolbar = View.extend({
module.exports = Toolbar;
},{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Toolbar.Embed
*
@ -7651,6 +7735,8 @@ Embed = Select.extend({
module.exports = Embed;
},{"./select.js":65}],65:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.Toolbar.Select
*
@ -7721,6 +7807,8 @@ Select = Toolbar.extend({
module.exports = Select;
},{"../toolbar.js":63}],66:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* Creates a dropzone on WP editor instances (elements with .wp-editor-wrap
* or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow.
@ -7940,6 +8028,8 @@ EditorUploader = View.extend({
module.exports = EditorUploader;
},{"../view.js":71}],67:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderInline
*
@ -8091,6 +8181,8 @@ UploaderStatusError = View.extend({
module.exports = UploaderStatusError;
},{"../view.js":71}],69:[function(require,module,exports){
/*globals wp, _ */
/**
* wp.media.view.UploaderStatus
*
@ -8230,6 +8322,8 @@ UploaderStatus = View.extend({
module.exports = UploaderStatus;
},{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){
/*globals wp, _, jQuery */
/**
* wp.media.view.UploaderWindow
*
@ -8342,6 +8436,8 @@ UploaderWindow = View.extend({
module.exports = UploaderWindow;
},{"../view.js":71}],71:[function(require,module,exports){
/*globals wp */
/**
* wp.media.View
*

View File

@ -1,3 +1,5 @@
/*globals wp, jQuery, _, Backbone */
var media = wp.media,
$ = jQuery,
l10n;

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* A filter dropdown for month/dates.
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* wp.media.view.Attachment.Details
*

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals _ */
/**
* wp.media.view.Attachments.Selection
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.view.ButtonGroup
*

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.view.Button
*

View File

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

View File

@ -1,4 +1,4 @@
/*globals wp */
/*globals wp, _ */
var View = require( './view.js' ),
EditImage = wp.media.view.EditImage,

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
var View = require( './view.js' ),
EditImage;

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.view.Frame
*

View File

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

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* A frame for editing the details of a specific media item.
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, jQuery, Backbone */
/**
* wp.media.view.MediaFrame.Manage
*

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
/*global wp, MediaElementPlayer */
/*global wp, jQuery, _, MediaElementPlayer */
/**
* wp.media.view.MediaDetails

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.view.PriorityList
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, Backbone */
/**
* wp.media.view.Selection
*

View File

@ -1,3 +1,5 @@
/*globals _, jQuery, Backbone */
/**
* wp.media.view.Settings
*

View File

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

View File

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

View File

@ -1,3 +1,5 @@
/*globals _, Backbone */
/**
* wp.media.view.Toolbar
*

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* wp.media.view.Toolbar.Embed
*

View File

@ -1,3 +1,5 @@
/*globals wp, _ */
/**
* wp.media.view.Toolbar.Select
*

View File

@ -1,3 +1,5 @@
/*globals wp, _, jQuery */
/**
* Creates a dropzone on WP editor instances (elements with .wp-editor-wrap
* or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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