Make WordPress Core

Ticket #41682: 41682.diff

File 41682.diff, 202.1 KB (added by adamsilverstein, 7 years ago)
  • Gruntfile.js

    diff --git Gruntfile.js Gruntfile.js
    index 0070a7cf77..5a73e695d5 100644
    module.exports = function(grunt) { 
    435435                                }
    436436                        }
    437437                },
     438                jsdoc : {
     439                        dist : {
     440                                dest: 'jsdoc',
     441                                options: {
     442                                        configure : 'jsdoc.conf.json'
     443                                }
     444                        }
     445                },
    438446                qunit: {
    439447                        files: [
    440448                                'tests/qunit/**/*.html',
  • package.json

    diff --git package.json package.json
    index 8ffb450645..71695dfb77 100644
     
    2727    "grunt-contrib-uglify": "~2.0.0",
    2828    "grunt-contrib-watch": "~1.0.0",
    2929    "grunt-includes": "~0.5.1",
     30    "grunt-jsdoc": "^2.1.0",
    3031    "grunt-jsvalidate": "~0.2.2",
    3132    "grunt-legacy-util": "^0.2.0",
    3233    "grunt-patch-wordpress": "~0.4.2",
     
    3435    "grunt-replace": "~1.0.1",
    3536    "grunt-rtlcss": "~2.0.1",
    3637    "grunt-sass": "~1.2.1",
     38    "ink-docstrap": "^1.3.0",
    3739    "matchdep": "~1.0.0"
    3840  }
    3941}
  • src/wp-includes/js/api-request.js

    diff --git src/wp-includes/js/api-request.js src/wp-includes/js/api-request.js
    index 2ec605bf33..f0a84ef48f 100644
     
    88 * - Sends the REST API nonce as a request header.
    99 * - Allows specifying only an endpoint namespace/path instead of a full URL.
    1010 *
    11  * @namespace wp.apiRequest
    1211 * @since     4.9.0
    1312 */
    1413
     
    8281
    8382        apiRequest.transport = $.ajax;
    8483
     84        /** @namespace wp */
    8585        window.wp = window.wp || {};
    8686        window.wp.apiRequest = apiRequest;
    8787} )( jQuery );
  • src/wp-includes/js/autosave.js

    diff --git src/wp-includes/js/autosave.js src/wp-includes/js/autosave.js
    index c0851ecd37..afd51fbbdb 100644
    window.autosave = function() { 
    850850                };
    851851        }
    852852
     853        /** @namespace wp */
    853854        window.wp = window.wp || {};
    854855        window.wp.autosave = autosave();
    855856
  • src/wp-includes/js/customize-base.js

    diff --git src/wp-includes/js/customize-base.js src/wp-includes/js/customize-base.js
    index 3fdb92423f..b939d9a567 100644
     
     1/** @namespace wp */
    12window.wp = window.wp || {};
    23
    34(function( exports, $ ){
    window.wp = window.wp || {}; 
    165166        /**
    166167         * Observable values that support two-way binding.
    167168         *
     169         * @memberOf wp.customize
     170         * @alias wp.customize.Value
     171         *
    168172         * @constructor
    169173         */
    170         api.Value = api.Class.extend({
     174        api.Value = api.Class.extend(/** @lends wp.customize.Value.prototype */{
    171175                /**
    172176                 * @param {mixed}  initial The initial value.
    173177                 * @param {object} options
    window.wp = window.wp || {}; 
    304308        /**
    305309         * A collection of observable values.
    306310         *
     311         * @memberOf wp.customize
     312         * @alias wp.customize.Values
     313         *
    307314         * @constructor
    308315         * @augments wp.customize.Class
    309316         * @mixes wp.customize.Events
    310317         */
    311         api.Values = api.Class.extend({
     318        api.Values = api.Class.extend(/** @lends wp.customize.Values.prototype */{
    312319
    313320                /**
    314321                 * The default constructor for items of the collection.
    window.wp = window.wp || {}; 
    520527         *
    521528         * Handles inputs, selects, and textareas by default.
    522529         *
     530         * @memberOf wp.customize
     531         * @alias wp.customize.Element
     532         *
    523533         * @constructor
    524534         * @augments wp.customize.Value
    525535         * @augments wp.customize.Class
    526536         */
    527         api.Element = api.Value.extend({
     537        api.Element = api.Value.extend(/** @lends wp.customize.Element */{
    528538                initialize: function( element, options ) {
    529539                        var self = this,
    530540                                synchronizer = api.Element.synchronizer.html,
    window.wp = window.wp || {}; 
    617627        /**
    618628         * A communicator for sending data from one window to another over postMessage.
    619629         *
     630         * @memberOf wp.customize
     631         * @alias wp.customize.Messenger
     632         *
    620633         * @constructor
    621634         * @augments wp.customize.Class
    622635         * @mixes wp.customize.Events
    623636         */
    624         api.Messenger = api.Class.extend({
     637        api.Messenger = api.Class.extend(/** @lends wp.customize.Messenger.prototype */{
    625638                /**
    626639                 * Create a new Value.
    627640                 *
    window.wp = window.wp || {}; 
    765778         * @augments wp.customize.Class
    766779         * @since 4.6.0
    767780         *
     781         * @memberOf wp.customize
     782         * @alias wp.customize.Notification
     783         *
    768784         * @param {string}  code - The error code.
    769785         * @param {object}  params - Params.
    770786         * @param {string}  params.message=null - The error message.
    window.wp = window.wp || {}; 
    773789         * @param {string}  [params.setting=null] - The setting ID that the notification is related to.
    774790         * @param {*}       [params.data=null] - Any additional data.
    775791         */
    776         api.Notification = api.Class.extend({
     792        api.Notification = api.Class.extend(/** @lends wp.customize.Notification.prototype */{
    777793                initialize: function( code, params ) {
    778794                        var _params;
    779795                        this.code = code;
    window.wp = window.wp || {}; 
    798814        /**
    799815         * Get all customize settings.
    800816         *
     817         * @memberOf wp.customize
     818         *
    801819         * @return {object}
    802820         */
    803821        api.get = function() {
    window.wp = window.wp || {}; 
    812830
    813831        /**
    814832         * Utility function namespace
     833         *
     834         * @namespace wp.customize.utils
    815835         */
    816836        api.utils = {};
    817837
    window.wp = window.wp || {}; 
    820840         *
    821841         * @since 4.7.0
    822842         * @access public
     843         * @memberOf wp.customize.utils
    823844         *
    824845         * @param {string} queryString Query string.
    825846         * @returns {object} Parsed query string.
    window.wp = window.wp || {}; 
    844865                return queryParams;
    845866        };
    846867
    847         // Expose the API publicly on window.wp.customize
     868        /**
     869         * Expose the API publicly on window.wp.customize
     870         *
     871         * @namespace wp.customize
     872         */
    848873        exports.customize = api;
    849874})( wp, jQuery );
  • src/wp-includes/js/customize-loader.js

    diff --git src/wp-includes/js/customize-loader.js src/wp-includes/js/customize-loader.js
    index 1990d1a24d..27228bd47b 100644
     
    11/* global _wpCustomizeLoaderSettings, confirm */
    2 /*
     2/**
    33 * Expose a public API that allows the customizer to be
    44 * loaded on any page.
     5 *
     6 * @namespace wp
    57 */
    68window.wp = window.wp || {};
    79
    window.wp = window.wp || {}; 
    2224         *
    2325         *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
    2426         *
     27         * @memberOf wp.customize
     28         *
     29         * @class
    2530         * @augments wp.customize.Events
    2631         */
    27         Loader = $.extend( {}, api.Events, {
     32        Loader = $.extend( {}, api.Events,/** @lends wp.customize.Loader.prototype */{
    2833                /**
    2934                 * Setup the Loader; triggered on document#ready.
    3035                 */
  • src/wp-includes/js/customize-models.js

    diff --git src/wp-includes/js/customize-models.js src/wp-includes/js/customize-models.js
    index 9d6e088c51..372cad6273 100644
     
    11/* global _wpCustomizeHeader */
    22(function( $, wp ) {
    33        var api = wp.customize;
     4        /** @namespace wp.customize.HeaderTool */
    45        api.HeaderTool = {};
    56
    67
     
    1314         * These calls are made regardless of whether the user actually saves new
    1415         * Customizer settings.
    1516         *
     17         * @memberOf wp.customize.HeaderTool
     18         * @alias wp.customize.HeaderTool.ImageModel
     19         *
    1620         * @constructor
    1721         * @augments Backbone.Model
    1822         */
    19         api.HeaderTool.ImageModel = Backbone.Model.extend({
     23        api.HeaderTool.ImageModel = Backbone.Model.extend(/** @lends wp.customize.HeaderTool.ImageModel.prototype */{
    2024                defaults: function() {
    2125                        return {
    2226                                header: {
     
    125129        /**
    126130         * wp.customize.HeaderTool.ChoiceList
    127131         *
     132         * @memberOf wp.customize.HeaderTool
     133         * @alias wp.customize.HeaderTool.ChoiceList
     134         *
    128135         * @constructor
    129136         * @augments Backbone.Collection
    130137         */
     
    232239        /**
    233240         * wp.customize.HeaderTool.DefaultsList
    234241         *
     242         * @memberOf wp.customize.HeaderTool
     243         * @alias wp.customize.HeaderTool.DefaultsList
     244         *
    235245         * @constructor
    236246         * @augments wp.customize.HeaderTool.ChoiceList
    237247         * @augments Backbone.Collection
  • src/wp-includes/js/customize-preview-nav-menus.js

    diff --git src/wp-includes/js/customize-preview-nav-menus.js src/wp-includes/js/customize-preview-nav-menus.js
    index 6745b41be8..b328e67e9a 100644
     
    11/* global _wpCustomizePreviewNavMenusExports */
     2
     3/** @namespace wp.customize.navMenusPreview */
    24wp.customize.navMenusPreview = wp.customize.MenusCustomizerPreview = ( function( $, _, wp, api ) {
    35        'use strict';
    46
    wp.customize.navMenusPreview = wp.customize.MenusCustomizerPreview = ( function( 
    7274                /**
    7375                 * Partial representing an invocation of wp_nav_menu().
    7476                 *
     77                 * @memberOf wp.customize.navMenusPreview
     78                 * @alias wp.customize.navMenusPreview.NavMenuInstancePartial
     79                 *
    7580                 * @class
    7681                 * @augments wp.customize.selectiveRefresh.Partial
    7782                 * @since 4.5.0
    7883                 */
    79                 self.NavMenuInstancePartial = api.selectiveRefresh.Partial.extend({
     84                self.NavMenuInstancePartial = api.selectiveRefresh.Partial.extend(/** @lends wp.customize.navMenusPreview.NavMenuInstancePartial.prototype */{
    8085
    8186                        /**
    8287                         * Constructor.
  • src/wp-includes/js/customize-preview-widgets.js

    diff --git src/wp-includes/js/customize-preview-widgets.js src/wp-includes/js/customize-preview-widgets.js
    index 6c05e89431..b981788ed3 100644
     
    11/* global _wpWidgetCustomizerPreviewSettings */
     2
     3/** @namespace wp.customize.widgetsPreview */
    24wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( $, _, wp, api ) {
    35
    46        var self;
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    4244        /**
    4345         * Partial representing a widget instance.
    4446         *
     47         * @memberOf wp.customize.widgetsPreview
     48         * @alias wp.customize.widgetsPreview.WidgetPartial
     49         *
    4550         * @class
    4651         * @augments wp.customize.selectiveRefresh.Partial
    4752         * @since 4.5.0
    4853         */
    49         self.WidgetPartial = api.selectiveRefresh.Partial.extend({
     54        self.WidgetPartial = api.selectiveRefresh.Partial.extend(/** @lends wp.customize.widgetsPreview.WidgetPartial.prototype */{
    5055
    5156                /**
    5257                 * Constructor.
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    112117        /**
    113118         * Partial representing a widget area.
    114119         *
     120         * @memberOf wp.customize.widgetsPreview
     121         * @alias wp.customize.widgetsPreview.SidebarPartial
     122         *
    115123         * @class
    116124         * @augments wp.customize.selectiveRefresh.Partial
    117125         * @since 4.5.0
    118126         */
    119         self.SidebarPartial = api.selectiveRefresh.Partial.extend({
     127        self.SidebarPartial = api.selectiveRefresh.Partial.extend(/** @lends wp.customize.widgetsPreview.SidebarPartial.prototype */{
    120128
    121129                /**
    122130                 * Constructor.
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    510518        /**
    511519         * Calculate the selector for the sidebar's widgets based on the registered sidebar's info.
    512520         *
     521         * @memberOf wp.customize.widgetsPreview
     522         *
    513523         * @since 3.9.0
    514524         */
    515525        self.buildWidgetSelectors = function() {
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    548558        /**
    549559         * Highlight the widget on widget updates or widget control mouse overs.
    550560         *
     561         * @memberOf wp.customize.widgetsPreview
     562         *
    551563         * @since 3.9.0
    552564         * @param  {string} widgetId ID of the widget.
    553565         */
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    567579         * Show a title and highlight widgets on hover. On shift+clicking
    568580         * focus the widget control.
    569581         *
     582         * @memberOf wp.customize.widgetsPreview
     583         *
    570584         * @since 3.9.0
    571585         */
    572586        self.highlightControls = function() {
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    598612        /**
    599613         * Parse a widget ID.
    600614         *
     615         * @memberOf wp.customize.widgetsPreview
     616         *
    601617         * @since 4.5.0
    602618         *
    603619         * @param {string} widgetId Widget ID.
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    623639        /**
    624640         * Parse a widget setting ID.
    625641         *
     642         * @memberOf wp.customize.widgetsPreview
     643         *
    626644         * @since 4.5.0
    627645         *
    628646         * @param {string} settingId Widget setting ID.
    wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( 
    648666        /**
    649667         * Convert a widget ID into a Customizer setting ID.
    650668         *
     669         * @memberOf wp.customize.widgetsPreview
     670         *
    651671         * @since 4.5.0
    652672         *
    653673         * @param {string} widgetId Widget ID.
  • src/wp-includes/js/customize-preview.js

    diff --git src/wp-includes/js/customize-preview.js src/wp-includes/js/customize-preview.js
    index 5495590faf..777b45dbce 100644
     
    8787        };
    8888
    8989        /**
     90         * @memberOf wp.customize
     91         * @alias wp.customize.Preview
     92         *
    9093         * @constructor
    9194         * @augments wp.customize.Messenger
    9295         * @augments wp.customize.Class
    9396         * @mixes wp.customize.Events
    9497         */
    95         api.Preview = api.Messenger.extend({
     98        api.Preview = api.Messenger.extend(/** @lends wp.customize.Preview.prototype */{
    9699                /**
    97100                 * @param {object} params  - Parameters to configure the messenger.
    98101                 * @param {object} options - Extend any instance parameter or method with this object.
  • src/wp-includes/js/customize-selective-refresh.js

    diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
    index 4c4fa0d9cf..5bc17ed735 100644
     
    11/* global jQuery, JSON, _customizePartialRefreshExports, console */
    22
     3/** @namespace wp.customize.selectiveRefresh */
    34wp.customize.selectiveRefresh = ( function( $, api ) {
    45        'use strict';
    56        var self, Partial, Placement;
    wp.customize.selectiveRefresh = ( function( $, api ) { 
    2425         *
    2526         * A partial provides a rendering of one or more settings according to a template.
    2627         *
     28         * @memberOf wp.customize.selectiveRefresh
     29         *
    2730         * @see PHP class WP_Customize_Partial.
    2831         *
    2932         * @class
    wp.customize.selectiveRefresh = ( function( $, api ) { 
    3942         * @param {string} options.params.primarySetting   The ID for the primary setting the partial renders.
    4043         * @param {bool}   options.params.fallbackRefresh  Whether to refresh the entire preview in case of a partial refresh failure.
    4144         */
    42         Partial = self.Partial = api.Class.extend({
     45        Partial = self.Partial = api.Class.extend(/** @lends wp.customize.SelectiveRefresh.Partial.prototype */{
    4346
    4447                id: null,
    4548
    wp.customize.selectiveRefresh = ( function( $, api ) { 
    508511         * It also may have information in relation to how a placement may have just changed.
    509512         * The placement is conceptually similar to a DOM Range or MutationRecord.
    510513         *
    511          * @class
     514         * @memberOf wp.customize.selectiveRefresh
     515         *
     516         * @class Placement
    512517         * @augments wp.customize.Class
    513518         * @since 4.5.0
    514519         */
    515         self.Placement = Placement = api.Class.extend({
     520        self.Placement = Placement = api.Class.extend(/** @lends wp.customize.selectiveRefresh.prototype */{
    516521
    517522                /**
    518523                 * The partial with which the container is associated.
  • src/wp-includes/js/customize-views.js

    diff --git src/wp-includes/js/customize-views.js src/wp-includes/js/customize-views.js
    index 29de08adcd..786739f379 100644
     
    1111         *
    1212         * Instantiate with model wp.customize.HeaderTool.currentHeader.
    1313         *
     14         * @memberOf wp.customize.HeaderTool
     15         * @alias wp.customize.HeaderTool.CurrentView
     16         *
    1417         * @constructor
    1518         * @augments wp.Backbone.View
    1619         */
    17         api.HeaderTool.CurrentView = wp.Backbone.View.extend({
     20        api.HeaderTool.CurrentView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CurrentView.prototype */{
    1821                template: wp.template('header-current'),
    1922
    2023                initialize: function() {
     
    5053         * Manually changes model wp.customize.HeaderTool.currentHeader via the
    5154         * `select` method.
    5255         *
     56         * @memberOf wp.customize.HeaderTool
     57         * @alias wp.customize.HeaderTool.ChoiceView
     58         *
    5359         * @constructor
    5460         * @augments wp.Backbone.View
    5561         */
    56         api.HeaderTool.ChoiceView = wp.Backbone.View.extend({
     62        api.HeaderTool.ChoiceView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceView.prototype */{
    5763                template: wp.template('header-choice'),
    5864
    5965                className: 'header-view',
     
    125131         *
    126132         * Takes a wp.customize.HeaderTool.ChoiceList.
    127133         *
     134         * @memberOf wp.customize.HeaderTool
     135         * @alias wp.customize.HeaderTool.ChoiceListView
     136         *
    128137         * @constructor
    129138         * @augments wp.Backbone.View
    130139         */
    131         api.HeaderTool.ChoiceListView = wp.Backbone.View.extend({
     140        api.HeaderTool.ChoiceListView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceListView.prototype */{
    132141                initialize: function() {
    133142                        this.listenTo(this.collection, 'add', this.addOne);
    134143                        this.listenTo(this.collection, 'remove', this.render);
     
    168177         * Aggregates wp.customize.HeaderTool.ChoiceList collections (or any
    169178         * Backbone object, really) and acts as a bus to feed them events.
    170179         *
     180         * @memberOf wp.customize.HeaderTool
     181         * @alias wp.customize.HeaderTool.CombinedList
     182         *
    171183         * @constructor
    172184         * @augments wp.Backbone.View
    173185         */
    174         api.HeaderTool.CombinedList = wp.Backbone.View.extend({
     186        api.HeaderTool.CombinedList = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CombinedList.prototype */{
    175187                initialize: function(collections) {
    176188                        this.collections = collections;
    177189                        this.on('all', this.propagate, this);
  • src/wp-includes/js/heartbeat.js

    diff --git src/wp-includes/js/heartbeat.js src/wp-includes/js/heartbeat.js
    index 6c5e8d151b..c555806659 100644
     
    742742                };
    743743        };
    744744
    745         // Ensure the global `wp` object exists.
     745        /**
     746         * Ensure the global `wp` object exists.
     747         *
     748         * @namespace wp
     749         */
    746750        window.wp = window.wp || {};
    747751        window.wp.heartbeat = new Heartbeat();
    748752
  • src/wp-includes/js/mce-view.js

    diff --git src/wp-includes/js/mce-view.js src/wp-includes/js/mce-view.js
    index 397af63867..3100ab6e59 100644
     
    280280
    281281        wp.mce.View.extend = Backbone.View.extend;
    282282
    283         _.extend( wp.mce.View.prototype, {
     283        _.extend( wp.mce.View.prototype, /** @lends wp.mce.View.prototype */{
    284284
    285285                /**
    286286                 * The content.
  • src/wp-includes/js/media-audiovideo.js

    diff --git src/wp-includes/js/media-audiovideo.js src/wp-includes/js/media-audiovideo.js
    index 289c92f837..0a819747d2 100644
    media.view.AudioDetails = require( './views/audio-details.js' ); 
    279279media.view.VideoDetails = require( './views/video-details.js' );
    280280
    281281},{"./controllers/audio-details.js":2,"./controllers/video-details.js":3,"./models/post-media.js":4,"./views/audio-details.js":5,"./views/frame/audio-details.js":6,"./views/frame/media-details.js":7,"./views/frame/video-details.js":8,"./views/media-details.js":9,"./views/video-details.js":10}],2:[function(require,module,exports){
     282var State = wp.media.controller.State,
     283        l10n = wp.media.view.l10n,
     284        AudioDetails;
     285
    282286/**
    283287 * wp.media.controller.AudioDetails
    284288 *
    285289 * The controller for the Audio Details state
    286290 *
     291 * @memberOf wp.media.controller
     292 *
    287293 * @class
    288294 * @augments wp.media.controller.State
    289295 * @augments Backbone.Model
    290296 */
    291 var State = wp.media.controller.State,
    292         l10n = wp.media.view.l10n,
    293         AudioDetails;
    294 
    295 AudioDetails = State.extend({
     297AudioDetails = State.extend(/** @lends wp.media.controller.AudioDetails.prototype */{
    296298        defaults: {
    297299                id: 'audio-details',
    298300                toolbar: 'audio-details',
    module.exports = AudioDetails; 
    317319 *
    318320 * The controller for the Video Details state
    319321 *
     322 * @memberOf wp.media.controller
     323 *
    320324 * @class
    321325 * @augments wp.media.controller.State
    322326 * @augments Backbone.Model
    var State = wp.media.controller.State, 
    325329        l10n = wp.media.view.l10n,
    326330        VideoDetails;
    327331
    328 VideoDetails = State.extend({
     332VideoDetails = State.extend(/** @lends wp.media.controller.VideoDetails.prototype */{
    329333        defaults: {
    330334                id: 'video-details',
    331335                toolbar: 'video-details',
    module.exports = VideoDetails; 
    351355 * Shared model class for audio and video. Updates the model after
    352356 *   "Add Audio|Video Source" and "Replace Audio|Video" states return
    353357 *
     358 * @memberOf wp.media.model
     359 *
    354360 * @class
    355361 * @augments Backbone.Model
    356362 */
    357 var PostMedia = Backbone.Model.extend({
     363var PostMedia = Backbone.Model.extend(/** @lends wp.media.model.PostMedia.prototype */{
    358364        initialize: function() {
    359365                this.attachment = false;
    360366        },
    var PostMedia = Backbone.Model.extend({ 
    387393module.exports = PostMedia;
    388394
    389395},{}],5:[function(require,module,exports){
     396var MediaDetails = wp.media.view.MediaDetails,
     397        AudioDetails;
     398
    390399/**
    391400 * wp.media.view.AudioDetails
    392401 *
     402 * @memberOf wp.media.view
     403 *
    393404 * @class
    394405 * @augments wp.media.view.MediaDetails
    395406 * @augments wp.media.view.Settings.AttachmentDisplay
    module.exports = PostMedia; 
    398409 * @augments wp.Backbone.View
    399410 * @augments Backbone.View
    400411 */
    401 var MediaDetails = wp.media.view.MediaDetails,
    402         AudioDetails;
    403 
    404 AudioDetails = MediaDetails.extend({
     412AudioDetails = MediaDetails.extend(/** @lends wp.media.view.AudioDetails.prototype */{
    405413        className: 'audio-details',
    406414        template:  wp.template('audio-details'),
    407415
    AudioDetails = MediaDetails.extend({ 
    425433module.exports = AudioDetails;
    426434
    427435},{}],6:[function(require,module,exports){
     436var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
     437        MediaLibrary = wp.media.controller.MediaLibrary,
     438
     439        l10n = wp.media.view.l10n,
     440        AudioDetails;
     441
    428442/**
    429443 * wp.media.view.MediaFrame.AudioDetails
    430444 *
     445 * @memberOf wp.media.view.MediaFrame
     446 *
    431447 * @class
    432448 * @augments wp.media.view.MediaFrame.MediaDetails
    433449 * @augments wp.media.view.MediaFrame.Select
    module.exports = AudioDetails; 
    438454 * @augments Backbone.View
    439455 * @mixes wp.media.controller.StateMachine
    440456 */
    441 var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
    442         MediaLibrary = wp.media.controller.MediaLibrary,
    443 
    444         l10n = wp.media.view.l10n,
    445         AudioDetails;
    446 
    447 AudioDetails = MediaDetails.extend({
     457AudioDetails = MediaDetails.extend(/** @lends wp.media.view.MediaFrame.AudioDetails.prototype */{
    448458        defaults: {
    449459                id:      'audio',
    450460                url:     '',
    AudioDetails = MediaDetails.extend({ 
    501511module.exports = AudioDetails;
    502512
    503513},{}],7:[function(require,module,exports){
     514var Select = wp.media.view.MediaFrame.Select,
     515        l10n = wp.media.view.l10n,
     516        MediaDetails;
     517
    504518/**
    505519 * wp.media.view.MediaFrame.MediaDetails
    506520 *
     521 * @memberOf wp.media.view.MediaFrame
     522 *
    507523 * @class
    508524 * @augments wp.media.view.MediaFrame.Select
    509525 * @augments wp.media.view.MediaFrame
    module.exports = AudioDetails; 
    513529 * @augments Backbone.View
    514530 * @mixes wp.media.controller.StateMachine
    515531 */
    516 var Select = wp.media.view.MediaFrame.Select,
    517         l10n = wp.media.view.l10n,
    518         MediaDetails;
    519 
    520 MediaDetails = Select.extend({
     532MediaDetails = Select.extend(/** @lends wp.media.view.MediaFrame.MediaDetails.prototype */{
    521533        defaults: {
    522534                id:      'media',
    523535                url:     '',
    MediaDetails = Select.extend({ 
    631643module.exports = MediaDetails;
    632644
    633645},{}],8:[function(require,module,exports){
     646var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
     647        MediaLibrary = wp.media.controller.MediaLibrary,
     648        l10n = wp.media.view.l10n,
     649        VideoDetails;
     650
    634651/**
    635652 * wp.media.view.MediaFrame.VideoDetails
    636653 *
     654 * @memberOf wp.media.view.MediaFrame
     655 *
    637656 * @class
    638657 * @augments wp.media.view.MediaFrame.MediaDetails
    639658 * @augments wp.media.view.MediaFrame.Select
    module.exports = MediaDetails; 
    644663 * @augments Backbone.View
    645664 * @mixes wp.media.controller.StateMachine
    646665 */
    647 var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
    648         MediaLibrary = wp.media.controller.MediaLibrary,
    649         l10n = wp.media.view.l10n,
    650         VideoDetails;
    651 
    652 VideoDetails = MediaDetails.extend({
     666VideoDetails = MediaDetails.extend(/** @lends wp.media.view.MediaFrame.VideoDetails.prototype */{
    653667        defaults: {
    654668                id:      'video',
    655669                url:     '',
    module.exports = VideoDetails; 
    767781
    768782},{}],9:[function(require,module,exports){
    769783/* global MediaElementPlayer */
     784var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     785        $ = jQuery,
     786        MediaDetails;
    770787
    771788/**
    772789 * wp.media.view.MediaDetails
    773790 *
     791 * @memberOf wp.media.view
     792 *
    774793 * @class
    775794 * @augments wp.media.view.Settings.AttachmentDisplay
    776795 * @augments wp.media.view.Settings
    module.exports = VideoDetails; 
    778797 * @augments wp.Backbone.View
    779798 * @augments Backbone.View
    780799 */
    781 var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
    782         $ = jQuery,
    783         MediaDetails;
    784 
    785 MediaDetails = AttachmentDisplay.extend({
     800MediaDetails = AttachmentDisplay.extend(/** @lends wp.media.view.MediaDetails.prototype */{
    786801        initialize: function() {
    787802                _.bindAll(this, 'success');
    788803                this.players = [];
    MediaDetails = AttachmentDisplay.extend({ 
    854869                this.scriptXhr = false;
    855870        },
    856871
    857         /**
    858          * @global MediaElementPlayer
    859          */
    860872        setPlayer : function() {
    861873                var src;
    862874
    MediaDetails = AttachmentDisplay.extend({ 
    912924        resetFocus: function() {
    913925                this.$( '.embed-media-settings' ).scrollTop( 0 );
    914926        }
    915 }, {
     927},/** @lends wp.media.view.MediaDetails */{
    916928        instances : 0,
    917929        /**
    918930         * When multiple players in the DOM contain the same src, things get weird.
    MediaDetails = AttachmentDisplay.extend({ 
    938950module.exports = MediaDetails;
    939951
    940952},{}],10:[function(require,module,exports){
     953var MediaDetails = wp.media.view.MediaDetails,
     954        VideoDetails;
     955
    941956/**
    942957 * wp.media.view.VideoDetails
    943958 *
     959 * @memberOf wp.media.view
     960 *
    944961 * @class
    945962 * @augments wp.media.view.MediaDetails
    946963 * @augments wp.media.view.Settings.AttachmentDisplay
    module.exports = MediaDetails; 
    949966 * @augments wp.Backbone.View
    950967 * @augments Backbone.View
    951968 */
    952 var MediaDetails = wp.media.view.MediaDetails,
    953         VideoDetails;
    954 
    955 VideoDetails = MediaDetails.extend({
     969VideoDetails = MediaDetails.extend(/** @lends wp.media.view.VideoDetails.prototype */{
    956970        className: 'video-details',
    957971        template:  wp.template('video-details'),
    958972
  • src/wp-includes/js/media-editor.js

    diff --git src/wp-includes/js/media-editor.js src/wp-includes/js/media-editor.js
    index 3852543aa4..a88709c568 100644
     
    3030                return attrs[ key ];
    3131        };
    3232
    33         /**
    34          * wp.media.string
    35          * @namespace
    36          */
     33        /** @namespace wp.media.string */
    3734        wp.media.string = {
    3835                /**
    3936                 * Joins the `props` and `attachment` objects,
    4037                 * outputting the proper object format based on the
    4138                 * attachment's type.
    4239                 *
    43                  * @global wp.media.view.settings
    44                  * @global getUserSetting()
    45                  *
    4640                 * @param {Object} [props={}] Attachment details (align, link, size, etc).
    4741                 * @param {Object} attachment The attachment object, media version of Post.
    4842                 * @returns {Object} Joined props
     
    109103                /**
    110104                 * Create link markup that is suitable for passing to the editor
    111105                 *
    112                  * @global wp.html.string
    113                  *
    114106                 * @param {Object} props Attachment details (align, link, size, etc).
    115107                 * @param {Object} attachment The attachment object, media version of Post.
    116108                 * @returns {string} The link markup
     
    159151                 *
    160152                 * @access private
    161153                 *
    162                  * @global wp.shortcode
    163                  * @global wp.media.view.settings
    164                  *
    165154                 * @param {string} type The shortcode tag name: 'audio' or 'video'.
    166155                 * @param {Object} props Attachment details (align, link, size, etc).
    167156                 * @param {Object} attachment The attachment object, media version of Post.
     
    210199                 * Create image markup, optionally with a link and/or wrapped in a caption shortcode,
    211200                 *  that is suitable for passing to the editor
    212201                 *
    213                  * @global wp.html
    214                  * @global wp.shortcode
    215                  *
    216202                 * @param {Object} props Attachment details (align, link, size, etc).
    217203                 * @param {Object} attachment The attachment object, media version of Post.
    218204                 * @returns {string}
     
    341327                }
    342328        };
    343329
     330        /**
     331         * @class wp.media.collection
     332         *
     333         * @param {Object} attributes
     334         */
    344335        wp.media.collection = function(attributes) {
    345336                var collections = {};
    346337
    347                 return _.extend( {
     338                return _.extend(/** @lends wp.media.collection.prototype */{
    348339                        coerce : wp.media.coerce,
    349340                        /**
    350341                         * Retrieve attachments based on the properties of the passed shortcode
    351342                         *
    352                          * @global wp.media.query
    353                          *
    354343                         * @param {wp.shortcode} shortcode An instance of wp.shortcode().
    355344                         * @returns {wp.media.model.Attachments} A Backbone.Collection containing
    356345                         *      the media items belonging to a collection.
     
    417406                        /**
    418407                         * Triggered when clicking 'Insert {label}' or 'Update {label}'
    419408                         *
    420                          * @global wp.shortcode
    421                          * @global wp.media.model.Attachments
    422                          *
    423409                         * @param {wp.media.model.Attachments} attachments A Backbone.Collection containing
    424410                         *      the media items belonging to a collection.
    425411                         *      The query[ this.tag ] property is a Backbone.Model
     
    488474                         * Triggered when double-clicking a collection shortcode placeholder
    489475                         *   in the editor
    490476                         *
    491                          * @global wp.shortcode
    492                          * @global wp.media.model.Selection
    493                          * @global wp.media.view.l10n
    494                          *
    495477                         * @param {string} content Content that is searched for possible
    496478                         *    shortcode markup matching the passed tag name,
    497479                         *
     
    610592        });
    611593
    612594        /**
    613          * wp.media.featuredImage
    614          * @namespace
     595         * @namespace wp.media.featuredImage
     596         * @memberOf wp.media
    615597         */
    616598        wp.media.featuredImage = {
    617599                /**
    618600                 * Get the featured image post ID
    619601                 *
    620                  * @global wp.media.view.settings
    621                  *
    622602                 * @returns {wp.media.view.settings.post.featuredImageId|number}
    623603                 */
    624604                get: function() {
     
    628608                 * Set the featured image id, save the post thumbnail data and
    629609                 * set the HTML in the post meta box to the new featured image.
    630610                 *
    631                  * @global wp.media.view.settings
    632                  * @global wp.media.post
    633                  *
    634611                 * @param {number} id The post ID of the featured image, or -1 to unset it.
    635612                 */
    636613                set: function( id ) {
     
    660637                /**
    661638                 * The Featured Image workflow
    662639                 *
    663                  * @global wp.media.controller.FeaturedImage
    664                  * @global wp.media.view.l10n
    665                  *
    666640                 * @this wp.media.featuredImage
    667641                 *
    668642                 * @returns {wp.media.view.MediaFrame.Select} A media workflow.
     
    705679                 * 'select' callback for Featured Image workflow, triggered when
    706680                 *  the 'Set Featured Image' button is clicked in the media modal.
    707681                 *
    708                  * @global wp.media.view.settings
    709                  *
    710682                 * @this wp.media.controller.FeaturedImage
    711683                 */
    712684                select: function() {
     
    723695                 * the post thumbnail is clicked.
    724696                 *
    725697                 * Update the featured image id when the 'remove' link is clicked.
    726                  *
    727                  * @global wp.media.view.settings
    728698                 */
    729699                init: function() {
    730700                        $('#postimagediv').on( 'click', '#set-post-thumbnail', function( event ) {
     
    742712
    743713        $( wp.media.featuredImage.init );
    744714
    745         /**
    746          * wp.media.editor
    747          * @namespace
    748          */
     715        /** @namespace wp.media.editor */
    749716        wp.media.editor = {
    750717                /**
    751718                 * Send content to the editor
    752719                 *
    753                  * @global tinymce
    754                  * @global QTags
    755                  * @global wpActiveEditor
    756                  * @global tb_remove() - Possibly overloaded by legacy plugins
    757                  *
    758720                 * @param {string} html Content to send to the editor
    759721                 */
    760722                insert: function( html ) {
     
    805767                 * Setup 'workflow' and add to the 'workflows' cache. 'open' can
    806768                 *  subsequently be called upon it.
    807769                 *
    808                  * @global wp.media.view.l10n
    809                  *
    810770                 * @param {string} id A slug used to identify the workflow.
    811771                 * @param {Object} [options={}]
    812772                 *
     
    914874                /**
    915875                 * Determines the proper current workflow id
    916876                 *
    917                  * @global wpActiveEditor
    918                  * @global tinymce
    919                  *
    920877                 * @param {string} [id=''] A slug used to identify the workflow.
    921878                 *
    922879                 * @returns {wpActiveEditor|string|tinymce.activeEditor.id}
     
    962919                        id = this.id( id );
    963920                        delete workflows[ id ];
    964921                },
    965                 /**
    966                  * @namespace
    967                  */
     922                /** @namespace wp.media.editor.send */
    968923                send: {
    969924                        /**
    970925                         * Called when sending an attachment to the editor
    971926                         *   from the medial modal.
    972927                         *
    973                          * @global wp.media.view.settings
    974                          * @global wp.media.post
    975                          *
    976928                         * @param {Object} props Attachment details (align, link, size, etc).
    977929                         * @param {Object} attachment The attachment object, media version of Post.
    978930                         * @returns {Promise}
     
    1028980                        /**
    1029981                         * Called when 'Insert From URL' source is not an image. Example: YouTube url.
    1030982                         *
    1031                          * @global wp.media.view.settings
    1032                          *
    1033983                         * @param {Object} embed
    1034984                         * @returns {Promise}
    1035985                         */
     
    10751025
    10761026                /**
    10771027                 * Bind click event for .insert-media using event delegation
    1078                  *
    1079                  * @global wp.media.view.l10n
    10801028                 */
    10811029                init: function() {
    10821030                        $(document.body)
  • src/wp-includes/js/media-grid.js

    diff --git src/wp-includes/js/media-grid.js src/wp-includes/js/media-grid.js
    index b6128a3755..6e35fb52a6 100644
     
    11(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){
     2var l10n = wp.media.view.l10n,
     3        EditAttachmentMetadata;
     4
    25/**
    36 * wp.media.controller.EditAttachmentMetadata
    47 *
    58 * A state for editing an attachment's metadata.
    69 *
     10 * @memberOf wp.media.controller
     11 *
    712 * @class
    813 * @augments wp.media.controller.State
    914 * @augments Backbone.Model
    1015 */
    11 var l10n = wp.media.view.l10n,
    12         EditAttachmentMetadata;
    13 
    14 EditAttachmentMetadata = wp.media.controller.State.extend({
     16EditAttachmentMetadata = wp.media.controller.State.extend(/** @lends wp.media.controller.EditAttachmentMetadata.prototype */{
    1517        defaults: {
    1618                id:      'edit-attachment',
    1719                // Title string passed to the frame's title region view.
    media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-sel 
    4547 *
    4648 * A router for handling the browser history and application state.
    4749 *
     50 * @memberOf wp.media.view.MediaFrame.Manage
     51 *
    4852 * @class
    4953 * @augments Backbone.Router
    5054 */
    51 var Router = Backbone.Router.extend({
     55var Router = Backbone.Router.extend(/** @lends wp.media.view.MediaFrame.Manage.Router.prototype */{
    5256        routes: {
    5357                'upload.php?item=:slug&mode=edit': 'editItem',
    5458                'upload.php?item=:slug':           'showItem',
    var Router = Backbone.Router.extend({ 
    107111module.exports = Router;
    108112
    109113},{}],4:[function(require,module,exports){
     114var Details = wp.media.view.Attachment.Details,
     115        TwoColumn;
     116
    110117/**
    111118 * wp.media.view.Attachment.Details.TwoColumn
    112119 *
    113120 * A similar view to media.view.Attachment.Details
    114121 * for use in the Edit Attachment modal.
    115122 *
     123 * @memberOf wp.media.view.Attachment.Details
     124 *
    116125 * @class
    117126 * @augments wp.media.view.Attachment.Details
    118127 * @augments wp.media.view.Attachment
    module.exports = Router; 
    120129 * @augments wp.Backbone.View
    121130 * @augments Backbone.View
    122131 */
    123 var Details = wp.media.view.Attachment.Details,
    124         TwoColumn;
    125 
    126 TwoColumn = Details.extend({
     132TwoColumn = Details.extend(/** @lends wp.media.view.Attachment.Details.TowColumn.prototype */{
    127133        template: wp.template( 'attachment-details-two-column' ),
    128134
    129135        initialize: function() {
    TwoColumn = Details.extend({ 
    158164module.exports = TwoColumn;
    159165
    160166},{}],5:[function(require,module,exports){
     167var Button = wp.media.view.Button,
     168        DeleteSelected = wp.media.view.DeleteSelectedButton,
     169        DeleteSelectedPermanently;
     170
    161171/**
    162172 * wp.media.view.DeleteSelectedPermanentlyButton
    163173 *
    164174 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
    165175 *
     176 * @memberOf wp.media.view
     177 *
    166178 * @class
    167179 * @augments wp.media.view.DeleteSelectedButton
    168180 * @augments wp.media.view.Button
    module.exports = TwoColumn; 
    170182 * @augments wp.Backbone.View
    171183 * @augments Backbone.View
    172184 */
    173 var Button = wp.media.view.Button,
    174         DeleteSelected = wp.media.view.DeleteSelectedButton,
    175         DeleteSelectedPermanently;
    176 
    177 DeleteSelectedPermanently = DeleteSelected.extend({
     185DeleteSelectedPermanently = DeleteSelected.extend(/** @lends wp.media.view.DeleteSelectedPermanentlyButton.prototype */{
    178186        initialize: function() {
    179187                DeleteSelected.prototype.initialize.apply( this, arguments );
    180188                this.controller.on( 'select:activate', this.selectActivate, this );
    DeleteSelectedPermanently = DeleteSelected.extend({ 
    205213module.exports = DeleteSelectedPermanently;
    206214
    207215},{}],6:[function(require,module,exports){
     216var Button = wp.media.view.Button,
     217        l10n = wp.media.view.l10n,
     218        DeleteSelected;
     219
    208220/**
    209221 * wp.media.view.DeleteSelectedButton
    210222 *
    211223 * A button that handles bulk Delete/Trash logic
    212224 *
     225 * @memberOf wp.media.view
     226 *
    213227 * @class
    214228 * @augments wp.media.view.Button
    215229 * @augments wp.media.View
    216230 * @augments wp.Backbone.View
    217231 * @augments Backbone.View
    218232 */
    219 var Button = wp.media.view.Button,
    220         l10n = wp.media.view.l10n,
    221         DeleteSelected;
    222 
    223 DeleteSelected = Button.extend({
     233DeleteSelected = Button.extend(/** @lends wp.media.view.DeleteSelectedButton.prototype */{
    224234        initialize: function() {
    225235                Button.prototype.initialize.apply( this, arguments );
    226236                if ( this.options.filters ) {
    DeleteSelected = Button.extend({ 
    258268module.exports = DeleteSelected;
    259269
    260270},{}],7:[function(require,module,exports){
     271
     272var Button = wp.media.view.Button,
     273        l10n = wp.media.view.l10n,
     274        SelectModeToggle;
     275
    261276/**
    262277 * wp.media.view.SelectModeToggleButton
    263278 *
     279 * @memberOf wp.media.view
     280 *
    264281 * @class
    265282 * @augments wp.media.view.Button
    266283 * @augments wp.media.View
    267284 * @augments wp.Backbone.View
    268285 * @augments Backbone.View
    269286 */
    270 var Button = wp.media.view.Button,
    271         l10n = wp.media.view.l10n,
    272         SelectModeToggle;
    273 
    274 SelectModeToggle = Button.extend({
     287SelectModeToggle = Button.extend(/** @lends wp.media.view.SelectModeToggle.prototype */{
    275288        initialize: function() {
    276289                _.defaults( this.options, {
    277290                        size : ''
    SelectModeToggle = Button.extend({ 
    332345module.exports = SelectModeToggle;
    333346
    334347},{}],8:[function(require,module,exports){
     348var View = wp.media.View,
     349        EditImage = wp.media.view.EditImage,
     350        Details;
     351
    335352/**
    336353 * wp.media.view.EditImage.Details
    337354 *
     355 * @memberOf wp.media.view.EditImage
     356 *
    338357 * @class
    339358 * @augments wp.media.view.EditImage
    340359 * @augments wp.media.View
    341360 * @augments wp.Backbone.View
    342361 * @augments Backbone.View
    343362 */
    344 var View = wp.media.View,
    345         EditImage = wp.media.view.EditImage,
    346         Details;
    347 
    348 Details = EditImage.extend({
     363Details = EditImage.extend(/** @lends wp.media.view.EditImage.Details.prototype */{
    349364        initialize: function( options ) {
    350365                this.editor = window.imageEdit;
    351366                this.frame = options.frame;
    Details = EditImage.extend({ 
    367382module.exports = Details;
    368383
    369384},{}],9:[function(require,module,exports){
     385var Frame = wp.media.view.Frame,
     386        MediaFrame = wp.media.view.MediaFrame,
     387
     388        $ = jQuery,
     389        EditAttachments;
     390
    370391/**
    371392 * wp.media.view.MediaFrame.EditAttachments
    372393 *
    module.exports = Details; 
    376397 *
    377398 * Requires an attachment model to be passed in the options hash under `model`.
    378399 *
     400 * @memberOf wp.media.view.MediaFrame
     401 *
    379402 * @class
    380403 * @augments wp.media.view.Frame
    381404 * @augments wp.media.View
    module.exports = Details; 
    383406 * @augments Backbone.View
    384407 * @mixes wp.media.controller.StateMachine
    385408 */
    386 var Frame = wp.media.view.Frame,
    387         MediaFrame = wp.media.view.MediaFrame,
    388 
    389         $ = jQuery,
    390         EditAttachments;
    391 
    392 EditAttachments = MediaFrame.extend({
     409EditAttachments = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.EditAttachments.prototype */{
    393410
    394411        className: 'edit-attachment-frame',
    395412        template:  wp.template( 'edit-attachment-frame' ),
    EditAttachments = MediaFrame.extend({ 
    627644module.exports = EditAttachments;
    628645
    629646},{}],10:[function(require,module,exports){
     647var MediaFrame = wp.media.view.MediaFrame,
     648        Library = wp.media.controller.Library,
     649
     650        $ = Backbone.$,
     651        Manage;
     652
    630653/**
    631654 * wp.media.view.MediaFrame.Manage
    632655 *
    module.exports = EditAttachments; 
    634657 *
    635658 * Used in the media grid view.
    636659 *
     660 * @memberOf wp.media.view.MediaFrame
     661 *
    637662 * @class
    638663 * @augments wp.media.view.MediaFrame
    639664 * @augments wp.media.view.Frame
    module.exports = EditAttachments; 
    642667 * @augments Backbone.View
    643668 * @mixes wp.media.controller.StateMachine
    644669 */
    645 var MediaFrame = wp.media.view.MediaFrame,
    646         Library = wp.media.controller.Library,
    647 
    648         $ = Backbone.$,
    649         Manage;
    650 
    651 Manage = MediaFrame.extend({
     670Manage = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.Manage.prototype */{
    652671        /**
    653          * @global wp.Uploader
     672         * @constructs
    654673         */
    655674        initialize: function() {
    656675                _.defaults( this.options, {
  • src/wp-includes/js/media-models.js

    diff --git src/wp-includes/js/media-models.js src/wp-includes/js/media-models.js
    index f5683a939e..ba93f9722a 100644
     
    22var $ = jQuery,
    33        Attachment, Attachments, l10n, media;
    44
     5/** @namespace wp */
    56window.wp = window.wp || {};
    67
    78/**
    window.wp = window.wp || {}; 
    910 *
    1011 * Handles the default media experience.
    1112 *
     13 * @alias wp.media
     14 * @memberOf wp
     15 *
    1216 * @param  {object} attributes The properties passed to the main media controller.
    1317 * @return {wp.media.view.MediaFrame} A media workflow.
    1418 */
    media = wp.media = function( attributes ) { 
    4751        return frame;
    4852};
    4953
     54/** @namespace wp.media */
     55/** @namespace wp.media.model */
     56/** @namespace wp.media.view */
     57/** @namespace wp.media.controller */
     58/** @namespace wp.media.frames */
    5059_.extend( media, { model: {}, view: {}, controller: {}, frames: {} });
    5160
    5261// Link any localized strings.
    media.compare = function( a, b, ac, bc ) { 
    9099        }
    91100};
    92101
    93 _.extend( media, {
     102_.extend( media, /** @lends wp.media */{
    94103        /**
    95104         * media.template( id )
    96105         *
    $(window).on('unload', function(){ 
    230239});
    231240
    232241},{"./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){
     242var $ = Backbone.$,
     243        Attachment;
     244
    233245/**
    234246 * wp.media.model.Attachment
    235247 *
     248 * @memberOf wp.media.model
     249 *
    236250 * @class
    237251 * @augments Backbone.Model
    238252 */
    239 var $ = Backbone.$,
    240         Attachment;
    241 
    242 Attachment = Backbone.Model.extend({
     253Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototype */{
    243254        /**
    244255         * Triggered when attachment details change
    245256         * Overrides Backbone.Model.sync
    Attachment = Backbone.Model.extend({ 
    366377                        model.set( model.parse( resp, xhr ), options );
    367378                });
    368379        }
    369 }, {
     380},/** @lends wp.media.model.Attachment */{
    370381        /**
    371382         * Create a new model on the static 'all' attachments collection and return it.
    372383         *
    373384         * @static
     385         *
    374386         * @param {Object} attrs
    375387         * @returns {wp.media.model.Attachment}
    376388         */
    module.exports = Attachment; 
    407419 * 'options.props.query = true', which will mirror the collection
    408420 * to an Attachments Query collection - @see wp.media.model.Attachments.mirror().
    409421 *
     422 * @memberOf wp.media.model
     423 *
    410424 * @class
    411425 * @augments Backbone.Collection
    412426 *
    module.exports = Attachment; 
    420434 * @param {string} [options.filters]
    421435 *
    422436 */
    423 var Attachments = Backbone.Collection.extend({
     437var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachments.prototype */{
    424438        /**
    425439         * @type {wp.media.model.Attachment}
    426440         */
    var Attachments = Backbone.Collection.extend({ 
    818832                        attachments: attachments
    819833                });
    820834        }
    821 }, {
     835},/** @lends wp.media.model.Attachments */{
    822836        /**
    823837         * A function to compare two attachment models in an attachments collection.
    824838         *
    825839         * Used as the default comparator for instances of wp.media.model.Attachments
    826840         * and its subclasses. @see wp.media.model.Attachments._changeOrderby().
    827841         *
    828          * @static
    829          *
    830842         * @param {Backbone.Model} a
    831843         * @param {Backbone.Model} b
    832844         * @param {Object} options
    var Attachments = Backbone.Collection.extend({ 
    855867
    856868                return ( 'DESC' === order ) ? wp.media.compare( a, b, ac, bc ) : wp.media.compare( b, a, bc, ac );
    857869        },
    858         /**
    859          * @namespace
    860          */
     870        /** @namespace wp.media.model.Attachments.filters */
    861871        filters: {
    862872                /**
    863873                 * @static
    module.exports = Attachments; 
    952962 *
    953963 * Used in the embedded image attachment display settings modal - @see wp.media.view.MediaFrame.ImageDetails.
    954964 *
     965 * @memberOf wp.media.model
     966 *
    955967 * @class
    956968 * @augments Backbone.Model
    957969 *
    958970 * @param {int} [attributes]               Initial model attributes.
    959971 * @param {int} [attributes.attachment_id] ID of the attachment.
    960972 **/
    961 var PostImage = Backbone.Model.extend({
     973var PostImage = Backbone.Model.extend(/** @lends wp.media.model.PostImage.prototype */{
    962974
    963975        initialize: function( attributes ) {
    964976                var Attachment = wp.media.model.Attachment;
    var PostImage = Backbone.Model.extend({ 
    10991111module.exports = PostImage;
    11001112
    11011113},{}],5:[function(require,module,exports){
     1114var Attachments = wp.media.model.Attachments,
     1115        Query;
     1116
    11021117/**
    11031118 * wp.media.model.Query
    11041119 *
    module.exports = PostImage; 
    11071122 * Note: Do NOT change this.args after the query has been initialized.
    11081123 *       Things will break.
    11091124 *
     1125 * @memberOf wp.media.model
     1126 *
    11101127 * @class
    11111128 * @augments wp.media.model.Attachments
    11121129 * @augments Backbone.Collection
    module.exports = PostImage; 
    11161133 * @param {object} [options.args]                Attachments query arguments.
    11171134 * @param {object} [options.args.posts_per_page]
    11181135 */
    1119 var Attachments = wp.media.model.Attachments,
    1120         Query;
    1121 
    1122 Query = Attachments.extend({
     1136Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
    11231137        /**
    1124          * @global wp.Uploader
    1125          *
    11261138         * @param {array}  [models=[]]  Array of initial models to populate the collection.
    11271139         * @param {object} [options={}]
    11281140         */
    Query = Attachments.extend({ 
    12541266                        return fallback.sync.apply( this, arguments );
    12551267                }
    12561268        }
    1257 }, {
     1269}, /** @lends wp.media.model.Query */{
    12581270        /**
    12591271         * @readonly
    12601272         */
    Query = Attachments.extend({ 
    14071419module.exports = Query;
    14081420
    14091421},{}],6:[function(require,module,exports){
     1422var Attachments = wp.media.model.Attachments,
     1423        Selection;
     1424
    14101425/**
    14111426 * wp.media.model.Selection
    14121427 *
    14131428 * A selection of attachments.
    14141429 *
     1430 * @memberOf wp.media.model
     1431 *
    14151432 * @class
    14161433 * @augments wp.media.model.Attachments
    14171434 * @augments Backbone.Collection
    14181435 */
    1419 var Attachments = wp.media.model.Attachments,
    1420         Selection;
    1421 
    1422 Selection = Attachments.extend({
     1436Selection = Attachments.extend(/** @lends wp.media.model.Selection.prototype */{
    14231437        /**
    14241438         * Refresh the `single` model whenever the selection changes.
    14251439         * Binds `single` instead of using the context argument to ensure
  • src/wp-includes/js/media-views.js

    diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
    index 6d46229a91..383891c8e6 100644
     
    11(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){
     2var Selection = wp.media.model.Selection,
     3        Library = wp.media.controller.Library,
     4        CollectionAdd;
     5
    26/**
    37 * wp.media.controller.CollectionAdd
    48 *
    59 * A state for adding attachments to a collection (e.g. video playlist).
    610 *
     11 * @memberOf wp.media.controller
     12 *
    713 * @class
    814 * @augments wp.media.controller.Library
    915 * @augments wp.media.controller.State
     
    3238 * @param {string}                     attributes.type                   The collection's media type. (e.g. 'video').
    3339 * @param {string}                     attributes.collectionType         The collection type. (e.g. 'playlist').
    3440 */
    35 var Selection = wp.media.model.Selection,
    36         Library = wp.media.controller.Library,
    37         CollectionAdd;
    38 
    39 CollectionAdd = Library.extend({
     41CollectionAdd = Library.extend(/** @lends wp.media.controller.CollectionAdd.prototype */{
    4042        defaults: _.defaults( {
    4143                // Selection defaults. @see media.model.Selection
    4244                multiple:      'add',
    CollectionAdd = Library.extend({ 
    100102module.exports = CollectionAdd;
    101103
    102104},{}],2:[function(require,module,exports){
     105var Library = wp.media.controller.Library,
     106        l10n = wp.media.view.l10n,
     107        $ = jQuery,
     108        CollectionEdit;
     109
    103110/**
    104111 * wp.media.controller.CollectionEdit
    105112 *
    106113 * A state for editing a collection, which is used by audio and video playlists,
    107114 * and can be used for other collections.
    108115 *
     116 * @memberOf wp.media.controller
     117 *
    109118 * @class
    110119 * @augments wp.media.controller.Library
    111120 * @augments wp.media.controller.State
    module.exports = CollectionAdd; 
    135144 * @param {string}                     attributes.type                   The collection's media type. (e.g. 'video').
    136145 * @param {string}                     attributes.collectionType         The collection type. (e.g. 'playlist').
    137146 */
    138 var Library = wp.media.controller.Library,
    139         l10n = wp.media.view.l10n,
    140         $ = jQuery,
    141         CollectionEdit;
    142 
    143 CollectionEdit = Library.extend({
     147CollectionEdit = Library.extend(/** @lends wp.media.controller.CollectionEdit.prototype */{
    144148        defaults: {
    145149                multiple:         false,
    146150                sortable:         true,
    CollectionEdit = Library.extend({ 
    262266module.exports = CollectionEdit;
    263267
    264268},{}],3:[function(require,module,exports){
     269var l10n = wp.media.view.l10n,
     270        Cropper;
     271
    265272/**
    266273 * wp.media.controller.Cropper
    267274 *
    268275 * A state for cropping an image.
    269276 *
     277 * @memberOf wp.media.controller
     278 *
    270279 * @class
    271280 * @augments wp.media.controller.State
    272281 * @augments Backbone.Model
    273282 */
    274 var l10n = wp.media.view.l10n,
    275         Cropper;
    276 
    277 Cropper = wp.media.controller.State.extend({
     283Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Cropper.prototype */{
    278284        defaults: {
    279285                id:          'cropper',
    280286                title:       l10n.cropImage,
    Cropper = wp.media.controller.State.extend({ 
    384390module.exports = Cropper;
    385391
    386392},{}],4:[function(require,module,exports){
     393var Controller = wp.media.controller,
     394        CustomizeImageCropper;
     395
    387396/**
    388397 * wp.media.controller.CustomizeImageCropper
    389398 *
     399 * @memberOf wp.media.controller
     400 *
    390401 * A state for cropping an image.
    391402 *
    392403 * @class
    module.exports = Cropper; 
    394405 * @augments wp.media.controller.State
    395406 * @augments Backbone.Model
    396407 */
    397 var Controller = wp.media.controller,
    398         CustomizeImageCropper;
    399 
    400 CustomizeImageCropper = Controller.Cropper.extend({
     408CustomizeImageCropper = Controller.Cropper.extend(/** @lends wp.media.controller.CustomizeImageCropper.prototype */{
    401409        doCrop: function( attachment ) {
    402410                var cropDetails = attachment.get( 'cropDetails' ),
    403411                        control = this.get( 'control' ),
    CustomizeImageCropper = Controller.Cropper.extend({ 
    427435module.exports = CustomizeImageCropper;
    428436
    429437},{}],5:[function(require,module,exports){
     438var l10n = wp.media.view.l10n,
     439        EditImage;
     440
    430441/**
    431442 * wp.media.controller.EditImage
    432443 *
    433444 * A state for editing (cropping, etc.) an image.
    434445 *
     446 * @memberOf wp.media.controller
     447 *
    435448 * @class
    436449 * @augments wp.media.controller.State
    437450 * @augments Backbone.Model
    module.exports = CustomizeImageCropper; 
    445458 * @param {string}                    [attributes.menu=false]         Initial mode for the menu region.
    446459 * @param {string}                    [attributes.url]                Unused. @todo Consider removal.
    447460 */
    448 var l10n = wp.media.view.l10n,
    449         EditImage;
    450 
    451 EditImage = wp.media.controller.State.extend({
     461EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.EditImage.prototype */{
    452462        defaults: {
    453463                id:      'edit-image',
    454464                title:   l10n.editImage,
    EditImage = wp.media.controller.State.extend({ 
    503513module.exports = EditImage;
    504514
    505515},{}],6:[function(require,module,exports){
     516var l10n = wp.media.view.l10n,
     517        $ = Backbone.$,
     518        Embed;
     519
    506520/**
    507521 * wp.media.controller.Embed
    508522 *
    509523 * A state for embedding media from a URL.
    510524 *
     525 * @memberOf wp.media.controller
     526 *
    511527 * @class
    512528 * @augments wp.media.controller.State
    513529 * @augments Backbone.Model
    module.exports = EditImage; 
    524540 * @param {string} [attributes.url]                   The embed URL.
    525541 * @param {object} [attributes.metadata={}]           Properties of the embed, which will override attributes.url if set.
    526542 */
    527 var l10n = wp.media.view.l10n,
    528         $ = Backbone.$,
    529         Embed;
    530 
    531 Embed = wp.media.controller.State.extend({
     543Embed = wp.media.controller.State.extend(/** @lends wp.media.controller.Embed.prototype */{
    532544        defaults: {
    533545                id:       'embed',
    534546                title:    l10n.insertFromUrlTitle,
    Embed = wp.media.controller.State.extend({ 
    639651module.exports = Embed;
    640652
    641653},{}],7:[function(require,module,exports){
     654var Attachment = wp.media.model.Attachment,
     655        Library = wp.media.controller.Library,
     656        l10n = wp.media.view.l10n,
     657        FeaturedImage;
     658
    642659/**
    643660 * wp.media.controller.FeaturedImage
    644661 *
    645662 * A state for selecting a featured image for a post.
    646663 *
     664 * @memberOf wp.media.controller
     665 *
    647666 * @class
    648667 * @augments wp.media.controller.Library
    649668 * @augments wp.media.controller.State
    module.exports = Embed; 
    670689 * @param {boolean}                    [attributes.contentUserSetting=true]  Whether the content region's mode should be set and persisted per user.
    671690 * @param {boolean}                    [attributes.syncSelection=true]       Whether the Attachments selection should be persisted from the last state.
    672691 */
    673 var Attachment = wp.media.model.Attachment,
    674         Library = wp.media.controller.Library,
    675         l10n = wp.media.view.l10n,
    676         FeaturedImage;
    677 
    678 FeaturedImage = Library.extend({
     692FeaturedImage = Library.extend(/** @lends wp.media.controller.FeaturedImage.prototype */{
    679693        defaults: _.defaults({
    680694                id:            'featured-image',
    681695                title:         l10n.setFeaturedImageTitle,
    FeaturedImage = Library.extend({ 
    761775module.exports = FeaturedImage;
    762776
    763777},{}],8:[function(require,module,exports){
     778var Selection = wp.media.model.Selection,
     779        Library = wp.media.controller.Library,
     780        l10n = wp.media.view.l10n,
     781        GalleryAdd;
     782
    764783/**
    765784 * wp.media.controller.GalleryAdd
    766785 *
    767786 * A state for selecting more images to add to a gallery.
    768787 *
     788 * @memberOf wp.media.controller
     789 *
    769790 * @class
    770791 * @augments wp.media.controller.Library
    771792 * @augments wp.media.controller.State
    module.exports = FeaturedImage; 
    792813 * @param {boolean}                    [attributes.syncSelection=false]     Whether the Attachments selection should be persisted from the last state.
    793814 *                                                                          Defaults to false because for this state, because the library of the Edit Gallery state is the selection.
    794815 */
    795 var Selection = wp.media.model.Selection,
    796         Library = wp.media.controller.Library,
    797         l10n = wp.media.view.l10n,
    798         GalleryAdd;
    799 
    800 GalleryAdd = Library.extend({
     816GalleryAdd = Library.extend(/** @lends wp.media.controller.GalleryAdd.prototype */{
    801817        defaults: _.defaults({
    802818                id:            'gallery-library',
    803819                title:         l10n.addToGalleryTitle,
    GalleryAdd = Library.extend({ 
    852868module.exports = GalleryAdd;
    853869
    854870},{}],9:[function(require,module,exports){
     871var Library = wp.media.controller.Library,
     872        l10n = wp.media.view.l10n,
     873        GalleryEdit;
     874
    855875/**
    856876 * wp.media.controller.GalleryEdit
    857877 *
    858878 * A state for editing a gallery's images and settings.
    859879 *
     880 * @memberOf wp.media.controller
     881 *
    860882 * @class
    861883 * @augments wp.media.controller.Library
    862884 * @augments wp.media.controller.State
    module.exports = GalleryAdd; 
    884906 * @param {view}                       [attributes.AttachmentView]        The single `Attachment` view to be used in the `Attachments`.
    885907 *                                                                        If none supplied, defaults to wp.media.view.Attachment.EditLibrary.
    886908 */
    887 var Library = wp.media.controller.Library,
    888         l10n = wp.media.view.l10n,
    889         GalleryEdit;
    890 
    891 GalleryEdit = Library.extend({
     909GalleryEdit = Library.extend(/** @lends wp.media.controller.GalleryEdit.prototype */{
    892910        defaults: {
    893911                id:               'gallery-edit',
    894912                title:            l10n.editGalleryTitle,
    GalleryEdit = Library.extend({ 
    9941012module.exports = GalleryEdit;
    9951013
    9961014},{}],10:[function(require,module,exports){
     1015var State = wp.media.controller.State,
     1016        Library = wp.media.controller.Library,
     1017        l10n = wp.media.view.l10n,
     1018        ImageDetails;
     1019
    9971020/**
    9981021 * wp.media.controller.ImageDetails
    9991022 *
    10001023 * A state for editing the attachment display settings of an image that's been
    10011024 * inserted into the editor.
    10021025 *
     1026 * @memberOf wp.media.controller
     1027 *
    10031028 * @class
    10041029 * @augments wp.media.controller.State
    10051030 * @augments Backbone.Model
    module.exports = GalleryEdit; 
    10181043 * @todo This state inherits some defaults from media.controller.Library.prototype.defaults,
    10191044 *       however this may not do anything.
    10201045 */
    1021 var State = wp.media.controller.State,
    1022         Library = wp.media.controller.Library,
    1023         l10n = wp.media.view.l10n,
    1024         ImageDetails;
    1025 
    1026 ImageDetails = State.extend({
     1046ImageDetails = State.extend(/** @lends wp.media.controller.ImageDetails.prototype */{
    10271047        defaults: _.defaults({
    10281048                id:       'image-details',
    10291049                title:    l10n.imageDetailsTitle,
    ImageDetails = State.extend({ 
    10561076module.exports = ImageDetails;
    10571077
    10581078},{}],11:[function(require,module,exports){
     1079var l10n = wp.media.view.l10n,
     1080        getUserSetting = window.getUserSetting,
     1081        setUserSetting = window.setUserSetting,
     1082        Library;
     1083
    10591084/**
    10601085 * wp.media.controller.Library
    10611086 *
    10621087 * A state for choosing an attachment or group of attachments from the media library.
    10631088 *
     1089 * @memberOf wp.media.controller
     1090 *
    10641091 * @class
    10651092 * @augments wp.media.controller.State
    10661093 * @augments Backbone.Model
    module.exports = ImageDetails; 
    10901117 * @param {boolean}                         [attributes.contentUserSetting=true] Whether the content region's mode should be set and persisted per user.
    10911118 * @param {boolean}                         [attributes.syncSelection=true]      Whether the Attachments selection should be persisted from the last state.
    10921119 */
    1093 var l10n = wp.media.view.l10n,
    1094         getUserSetting = window.getUserSetting,
    1095         setUserSetting = window.setUserSetting,
    1096         Library;
    1097 
    1098 Library = wp.media.controller.State.extend({
     1120Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Library.prototype */{
    10991121        defaults: {
    11001122                id:                 'library',
    11011123                title:              l10n.mediaLibraryTitle,
    module.exports = Library; 
    13521374/**
    13531375 * wp.media.controller.MediaLibrary
    13541376 *
     1377 * @memberOf wp.media.controller
     1378 *
    13551379 * @class
    13561380 * @augments wp.media.controller.Library
    13571381 * @augments wp.media.controller.State
    module.exports = Library; 
    13601384var Library = wp.media.controller.Library,
    13611385        MediaLibrary;
    13621386
    1363 MediaLibrary = Library.extend({
     1387MediaLibrary = Library.extend(/** @lends wp.media.controller.MediaLibrary.prototype */{
    13641388        defaults: _.defaults({
    13651389                // Attachments browser defaults. @see media.view.AttachmentsBrowser
    13661390                filterable:      'uploaded',
    module.exports = MediaLibrary; 
    14121436 * 'browse' mode t be activated on the 'content' view and then fills the region
    14131437 * with an AttachmentsBrowser view.
    14141438 *
     1439 * @memberOf wp.media.controller
     1440 *
    14151441 * @class
    14161442 *
    14171443 * @param {object}        options          Options hash for the region.
    var Region = function( options ) { 
    14261452// Use Backbone's self-propagating `extend` inheritance method.
    14271453Region.extend = Backbone.Model.extend;
    14281454
    1429 _.extend( Region.prototype, {
     1455_.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
    14301456        /**
    14311457         * Activate a mode.
    14321458         *
    _.extend( Region.prototype, { 
    14341460         *
    14351461         * @param {string} mode
    14361462         *
    1437          * @fires this.view#{this.id}:activate:{this._mode}
    1438          * @fires this.view#{this.id}:activate
    1439          * @fires this.view#{this.id}:deactivate:{this._mode}
    1440          * @fires this.view#{this.id}:deactivate
     1463         * @fires Region#activate
     1464         * @fires Region#deactivate
    14411465         *
    14421466         * @returns {wp.media.controller.Region} Returns itself to allow chaining.
    14431467         */
    _.extend( Region.prototype, { 
    14531477                /**
    14541478                 * Region mode deactivation event.
    14551479                 *
    1456                  * @event this.view#{this.id}:deactivate:{this._mode}
    1457                  * @event this.view#{this.id}:deactivate
     1480                 * @event wp.media.controller.Region#deactivate
    14581481                 */
    14591482                this.trigger('deactivate');
    14601483
    _.extend( Region.prototype, { 
    14641487                /**
    14651488                 * Region mode activation event.
    14661489                 *
    1467                  * @event this.view#{this.id}:activate:{this._mode}
    1468                  * @event this.view#{this.id}:activate
     1490                 * @event wp.media.controller.Region#activate
    14691491                 */
    14701492                this.trigger('activate');
    14711493                return this;
    _.extend( Region.prototype, { 
    14771499         *
    14781500         * @param {string} mode
    14791501         *
    1480          * @fires this.view#{this.id}:create:{this._mode}
    1481          * @fires this.view#{this.id}:create
    1482          * @fires this.view#{this.id}:render:{this._mode}
    1483          * @fires this.view#{this.id}:render
     1502         * @fires Region#create
     1503         * @fires Region#render
    14841504         *
    14851505         * @returns {wp.media.controller.Region} Returns itself to allow chaining
    14861506         */
    _.extend( Region.prototype, { 
    14981518                 *
    14991519                 * Region view creation takes place in an event callback on the frame.
    15001520                 *
    1501                  * @event this.view#{this.id}:create:{this._mode}
    1502                  * @event this.view#{this.id}:create
     1521                 * @event wp.media.controller.Region#create
     1522                 * @type {object}
     1523                 * @property {object} view
    15031524                 */
    15041525                this.trigger( 'create', set );
    15051526                view = set.view;
    _.extend( Region.prototype, { 
    15091530                 *
    15101531                 * Region view creation takes place in an event callback on the frame.
    15111532                 *
    1512                  * @event this.view#{this.id}:create:{this._mode}
    1513                  * @event this.view#{this.id}:create
     1533                 * @event wp.media.controller.Region#render
     1534                 * @type {object}
    15141535                 */
    15151536                this.trigger( 'render', view );
    15161537                if ( view ) {
    _.extend( Region.prototype, { 
    15781599module.exports = Region;
    15791600
    15801601},{}],14:[function(require,module,exports){
     1602var Library = wp.media.controller.Library,
     1603        l10n = wp.media.view.l10n,
     1604        ReplaceImage;
     1605
    15811606/**
    15821607 * wp.media.controller.ReplaceImage
    15831608 *
    15841609 * A state for replacing an image.
    15851610 *
     1611 * @memberOf wp.media.controller
     1612 *
    15861613 * @class
    15871614 * @augments wp.media.controller.Library
    15881615 * @augments wp.media.controller.State
    module.exports = Region; 
    16091636 * @param {boolean}                    [attributes.contentUserSetting=true] Whether the content region's mode should be set and persisted per user.
    16101637 * @param {boolean}                    [attributes.syncSelection=true]      Whether the Attachments selection should be persisted from the last state.
    16111638 */
    1612 var Library = wp.media.controller.Library,
    1613         l10n = wp.media.view.l10n,
    1614         ReplaceImage;
    1615 
    1616 ReplaceImage = Library.extend({
     1639ReplaceImage = Library.extend(/** @lends wp.media.controller.ReplaceImage.prototype */{
    16171640        defaults: _.defaults({
    16181641                id:            'replace-image',
    16191642                title:         l10n.replaceImageTitle,
    ReplaceImage = Library.extend({ 
    16861709module.exports = ReplaceImage;
    16871710
    16881711},{}],15:[function(require,module,exports){
     1712var Controller = wp.media.controller,
     1713        SiteIconCropper;
     1714
    16891715/**
    16901716 * wp.media.controller.SiteIconCropper
    16911717 *
    16921718 * A state for cropping a Site Icon.
    16931719 *
     1720 * @memberOf wp.media.controller
     1721 *
    16941722 * @class
    16951723 * @augments wp.media.controller.Cropper
    16961724 * @augments wp.media.controller.State
    16971725 * @augments Backbone.Model
    16981726 */
    1699 var Controller = wp.media.controller,
    1700         SiteIconCropper;
    1701 
    1702 SiteIconCropper = Controller.Cropper.extend({
     1727SiteIconCropper = Controller.Cropper.extend(/** @lends wp.media.controller.SiteIconCropper.prototype */{
    17031728        activate: function() {
    17041729                this.frame.on( 'content:create:crop', this.createCropContent, this );
    17051730                this.frame.on( 'close', this.removeCropper, this );
    module.exports = SiteIconCropper; 
    17431768 *
    17441769 * States are stored as models in a Backbone collection.
    17451770 *
     1771 * @memberOf wp.media.controller
     1772 *
    17461773 * @since 3.5.0
    17471774 *
    17481775 * @class
    var StateMachine = function( states ) { 
    17601787// Use Backbone's self-propagating `extend` inheritance method.
    17611788StateMachine.extend = Backbone.Model.extend;
    17621789
    1763 _.extend( StateMachine.prototype, Backbone.Events, {
     1790_.extend( StateMachine.prototype, Backbone.Events,/** @lends wp.media.controller.StateMachine.prototype */{
    17641791        /**
    17651792         * Fetch a state.
    17661793         *
    _.extend( StateMachine.prototype, Backbone.Events, { 
    18441871// Map all event binding and triggering on a StateMachine to its `states` collection.
    18451872_.each([ 'on', 'off', 'trigger' ], function( method ) {
    18461873        /**
     1874         * @function on
     1875         * @memberOf wp.media.controller.StateMachine
     1876         * @instance
     1877         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
     1878         */
     1879        /**
     1880         * @function off
     1881         * @memberOf wp.media.controller.StateMachine
     1882         * @instance
     1883         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
     1884         */
     1885        /**
     1886         * @function trigger
     1887         * @memberOf wp.media.controller.StateMachine
     1888         * @instance
    18471889         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
    18481890         */
    18491891        StateMachine.prototype[ method ] = function() {
    module.exports = StateMachine; 
    18731915 *     'reset'      is not triggered automatically. It should be invoked by the
    18741916 *                  proper controller to reset the state to its default.
    18751917 *
     1918 * @memberOf wp.media.controller
     1919 *
    18761920 * @class
    18771921 * @augments Backbone.Model
    18781922 */
    1879 var State = Backbone.Model.extend({
     1923var State = Backbone.Model.extend(/** @lends wp.media.controller.State.prototype */{
    18801924        /**
    18811925         * Constructor.
    18821926         *
    module.exports = State; 
    21082152 * Allows for selecting multiple images in the Insert Media workflow, and then
    21092153 * switching to the Insert Gallery workflow while preserving the attachments selection.
    21102154 *
     2155 * @memberOf wp.media
     2156 *
    21112157 * @mixin
    21122158 */
    21132159var selectionSync = {
    media.view.EditImage = require( './views/edit-image.js' ); 
    23172363media.view.Spinner = require( './views/spinner.js' );
    23182364
    23192365},{"./controllers/collection-add.js":1,"./controllers/collection-edit.js":2,"./controllers/cropper.js":3,"./controllers/customize-image-cropper.js":4,"./controllers/edit-image.js":5,"./controllers/embed.js":6,"./controllers/featured-image.js":7,"./controllers/gallery-add.js":8,"./controllers/gallery-edit.js":9,"./controllers/image-details.js":10,"./controllers/library.js":11,"./controllers/media-library.js":12,"./controllers/region.js":13,"./controllers/replace-image.js":14,"./controllers/site-icon-cropper.js":15,"./controllers/state-machine.js":16,"./controllers/state.js":17,"./utils/selection-sync.js":18,"./views/attachment-compat.js":20,"./views/attachment-filters.js":21,"./views/attachment-filters/all.js":22,"./views/attachment-filters/date.js":23,"./views/attachment-filters/uploaded.js":24,"./views/attachment.js":25,"./views/attachment/details.js":26,"./views/attachment/edit-library.js":27,"./views/attachment/edit-selection.js":28,"./views/attachment/library.js":29,"./views/attachment/selection.js":30,"./views/attachments.js":31,"./views/attachments/browser.js":32,"./views/attachments/selection.js":33,"./views/button-group.js":34,"./views/button.js":35,"./views/cropper.js":36,"./views/edit-image.js":37,"./views/embed.js":38,"./views/embed/image.js":39,"./views/embed/link.js":40,"./views/embed/url.js":41,"./views/focus-manager.js":42,"./views/frame.js":43,"./views/frame/image-details.js":44,"./views/frame/post.js":45,"./views/frame/select.js":46,"./views/iframe.js":47,"./views/image-details.js":48,"./views/label.js":49,"./views/media-frame.js":50,"./views/menu-item.js":51,"./views/menu.js":52,"./views/modal.js":53,"./views/priority-list.js":54,"./views/router-item.js":55,"./views/router.js":56,"./views/search.js":57,"./views/selection.js":58,"./views/settings.js":59,"./views/settings/attachment-display.js":60,"./views/settings/gallery.js":61,"./views/settings/playlist.js":62,"./views/sidebar.js":63,"./views/site-icon-cropper.js":64,"./views/site-icon-preview.js":65,"./views/spinner.js":66,"./views/toolbar.js":67,"./views/toolbar/embed.js":68,"./views/toolbar/select.js":69,"./views/uploader/editor.js":70,"./views/uploader/inline.js":71,"./views/uploader/status-error.js":72,"./views/uploader/status.js":73,"./views/uploader/window.js":74,"./views/view.js":75}],20:[function(require,module,exports){
     2366var View = wp.media.View,
     2367        AttachmentCompat;
     2368
    23202369/**
    23212370 * wp.media.view.AttachmentCompat
    23222371 *
    23232372 * A view to display fields added via the `attachment_fields_to_edit` filter.
    23242373 *
     2374 * @memberOf wp.media.view
     2375 *
    23252376 * @class
    23262377 * @augments wp.media.View
    23272378 * @augments wp.Backbone.View
    23282379 * @augments Backbone.View
    23292380 */
    2330 var View = wp.media.View,
    2331         AttachmentCompat;
    2332 
    2333 AttachmentCompat = View.extend({
     2381AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototype */{
    23342382        tagName:   'form',
    23352383        className: 'compat-item',
    23362384
    AttachmentCompat = View.extend({ 
    24022450module.exports = AttachmentCompat;
    24032451
    24042452},{}],21:[function(require,module,exports){
     2453var $ = jQuery,
     2454        AttachmentFilters;
     2455
    24052456/**
    24062457 * wp.media.view.AttachmentFilters
    24072458 *
     2459 * @memberOf wp.media.view
     2460 *
    24082461 * @class
    24092462 * @augments wp.media.View
    24102463 * @augments wp.Backbone.View
    24112464 * @augments Backbone.View
    24122465 */
    2413 var $ = jQuery,
    2414         AttachmentFilters;
    2415 
    2416 AttachmentFilters = wp.media.View.extend({
     2466AttachmentFilters = wp.media.View.extend(/** @lends wp.media.view.AttachmentFilters.prototype */{
    24172467        tagName:   'select',
    24182468        className: 'attachment-filters',
    24192469        id:        'media-attachment-filters',
    AttachmentFilters = wp.media.View.extend({ 
    24792529module.exports = AttachmentFilters;
    24802530
    24812531},{}],22:[function(require,module,exports){
     2532var l10n = wp.media.view.l10n,
     2533        All;
     2534
    24822535/**
    24832536 * wp.media.view.AttachmentFilters.All
    24842537 *
     2538 * @memberOf wp.media.view.AttachmentFilters
     2539 *
    24852540 * @class
    24862541 * @augments wp.media.view.AttachmentFilters
    24872542 * @augments wp.media.View
    24882543 * @augments wp.Backbone.View
    24892544 * @augments Backbone.View
    24902545 */
    2491 var l10n = wp.media.view.l10n,
    2492         All;
    2493 
    2494 All = wp.media.view.AttachmentFilters.extend({
     2546All = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.All.prototype */{
    24952547        createFilters: function() {
    24962548                var filters = {};
    24972549
    All = wp.media.view.AttachmentFilters.extend({ 
    25692621module.exports = All;
    25702622
    25712623},{}],23:[function(require,module,exports){
     2624var l10n = wp.media.view.l10n,
     2625        DateFilter;
     2626
    25722627/**
    25732628 * A filter dropdown for month/dates.
    25742629 *
     2630 * @memberOf wp.media.view.AttachmentFilters
     2631 *
    25752632 * @class
    25762633 * @augments wp.media.view.AttachmentFilters
    25772634 * @augments wp.media.View
    25782635 * @augments wp.Backbone.View
    25792636 * @augments Backbone.View
    25802637 */
    2581 var l10n = wp.media.view.l10n,
    2582         DateFilter;
    2583 
    2584 DateFilter = wp.media.view.AttachmentFilters.extend({
     2638DateFilter = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.Date.prototype */{
    25852639        id: 'media-attachment-date-filters',
    25862640
    25872641        createFilters: function() {
    DateFilter = wp.media.view.AttachmentFilters.extend({ 
    26102664module.exports = DateFilter;
    26112665
    26122666},{}],24:[function(require,module,exports){
     2667var l10n = wp.media.view.l10n,
     2668        Uploaded;
     2669
    26132670/**
    26142671 * wp.media.view.AttachmentFilters.Uploaded
    26152672 *
     2673 * @memberOf wp.media.view.AttachmentFilters
     2674 *
    26162675 * @class
    26172676 * @augments wp.media.view.AttachmentFilters
    26182677 * @augments wp.media.View
    26192678 * @augments wp.Backbone.View
    26202679 * @augments Backbone.View
    26212680 */
    2622 var l10n = wp.media.view.l10n,
    2623         Uploaded;
    2624 
    2625 Uploaded = wp.media.view.AttachmentFilters.extend({
     2681Uploaded = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.Uploaded.prototype */{
    26262682        createFilters: function() {
    26272683                var type = this.model.get('type'),
    26282684                        types = wp.media.view.settings.mimeTypes,
    Uploaded = wp.media.view.AttachmentFilters.extend({ 
    26692725module.exports = Uploaded;
    26702726
    26712727},{}],25:[function(require,module,exports){
     2728var View = wp.media.View,
     2729        $ = jQuery,
     2730        Attachment;
     2731
    26722732/**
    26732733 * wp.media.view.Attachment
    26742734 *
     2735 * @memberOf wp.media.view
     2736 *
    26752737 * @class
    26762738 * @augments wp.media.View
    26772739 * @augments wp.Backbone.View
    26782740 * @augments Backbone.View
    26792741 */
    2680 var View = wp.media.View,
    2681         $ = jQuery,
    2682         Attachment;
    2683 
    2684 Attachment = View.extend({
     2742Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
    26852743        tagName:   'li',
    26862744        className: 'attachment',
    26872745        template:  wp.template('attachment'),
    _.each({ 
    31893247        album:   '_syncAlbum'
    31903248}, function( method, setting ) {
    31913249        /**
     3250         * @function _syncCaption
     3251         * @memberOf wp.media.view.Attachment
     3252         * @instance
     3253         *
     3254         * @param {Backbone.Model} model
     3255         * @param {string} value
     3256         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     3257         */
     3258        /**
     3259         * @function _syncTitle
     3260         * @memberOf wp.media.view.Attachment
     3261         * @instance
     3262         *
     3263         * @param {Backbone.Model} model
     3264         * @param {string} value
     3265         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     3266         */
     3267        /**
     3268         * @function _syncArtist
     3269         * @memberOf wp.media.view.Attachment
     3270         * @instance
     3271         *
     3272         * @param {Backbone.Model} model
     3273         * @param {string} value
     3274         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     3275         */
     3276        /**
     3277         * @function _syncAlbum
     3278         * @memberOf wp.media.view.Attachment
     3279         * @instance
     3280         *
    31923281         * @param {Backbone.Model} model
    31933282         * @param {string} value
    31943283         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
    _.each({ 
    32153304module.exports = Attachment;
    32163305
    32173306},{}],26:[function(require,module,exports){
     3307var Attachment = wp.media.view.Attachment,
     3308        l10n = wp.media.view.l10n,
     3309        Details;
     3310
    32183311/**
    32193312 * wp.media.view.Attachment.Details
    32203313 *
     3314 * @memberOf wp.media.view.Attachment
     3315 *
    32213316 * @class
    32223317 * @augments wp.media.view.Attachment
    32233318 * @augments wp.media.View
    32243319 * @augments wp.Backbone.View
    32253320 * @augments Backbone.View
    32263321 */
    3227 var Attachment = wp.media.view.Attachment,
    3228         l10n = wp.media.view.l10n,
    3229         Details;
    3230 
    3231 Details = Attachment.extend({
     3322Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototype */{
    32323323        tagName:   'div',
    32333324        className: 'attachment-details',
    32343325        template:  wp.template('attachment-details'),
    module.exports = Details; 
    33563447/**
    33573448 * wp.media.view.Attachment.EditLibrary
    33583449 *
     3450 * @memberOf wp.media.view.Attachment
     3451 *
    33593452 * @class
    33603453 * @augments wp.media.view.Attachment
    33613454 * @augments wp.media.View
    33623455 * @augments wp.Backbone.View
    33633456 * @augments Backbone.View
    33643457 */
    3365 var EditLibrary = wp.media.view.Attachment.extend({
     3458var EditLibrary = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.EditLibrary.prototype */{
    33663459        buttons: {
    33673460                close: true
    33683461        }
    module.exports = EditLibrary; 
    33723465
    33733466},{}],28:[function(require,module,exports){
    33743467/**
    3375  * wp.media.view.Attachments.EditSelection
     3468 * wp.media.view.Attachment.EditSelection
     3469 *
     3470 * @memberOf wp.media.view.Attachment
    33763471 *
    33773472 * @class
    33783473 * @augments wp.media.view.Attachment.Selection
    module.exports = EditLibrary; 
    33813476 * @augments wp.Backbone.View
    33823477 * @augments Backbone.View
    33833478 */
    3384 var EditSelection = wp.media.view.Attachment.Selection.extend({
     3479var EditSelection = wp.media.view.Attachment.Selection.extend(/** @lends wp.media.view.Attachment.EditSelection.prototype */{
    33853480        buttons: {
    33863481                close: true
    33873482        }
    module.exports = EditSelection; 
    33933488/**
    33943489 * wp.media.view.Attachment.Library
    33953490 *
     3491 * @memberOf wp.media.view.Attachment
     3492 *
    33963493 * @class
    33973494 * @augments wp.media.view.Attachment
    33983495 * @augments wp.media.View
    33993496 * @augments wp.Backbone.View
    34003497 * @augments Backbone.View
    34013498 */
    3402 var Library = wp.media.view.Attachment.extend({
     3499var Library = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.Library.prototype */{
    34033500        buttons: {
    34043501                check: true
    34053502        }
    module.exports = Library; 
    34113508/**
    34123509 * wp.media.view.Attachment.Selection
    34133510 *
     3511 * @memberOf wp.media.view.Attachment
     3512 *
    34143513 * @class
    34153514 * @augments wp.media.view.Attachment
    34163515 * @augments wp.media.View
    34173516 * @augments wp.Backbone.View
    34183517 * @augments Backbone.View
    34193518 */
    3420 var Selection = wp.media.view.Attachment.extend({
     3519var Selection = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.Selection.prototype */{
    34213520        className: 'attachment selection',
    34223521
    34233522        // On click, just select the model, instead of removing the model from
    var Selection = wp.media.view.Attachment.extend({ 
    34303529module.exports = Selection;
    34313530
    34323531},{}],31:[function(require,module,exports){
     3532var View = wp.media.View,
     3533        $ = jQuery,
     3534        Attachments;
     3535
    34333536/**
    34343537 * wp.media.view.Attachments
    34353538 *
     3539 * @memberOf wp.media.view
     3540 *
    34363541 * @class
    34373542 * @augments wp.media.View
    34383543 * @augments wp.Backbone.View
    34393544 * @augments Backbone.View
    34403545 */
    3441 var View = wp.media.View,
    3442         $ = jQuery,
    3443         Attachments;
    3444 
    3445 Attachments = View.extend({
     3546Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
    34463547        tagName:   'ul',
    34473548        className: 'attachments',
    34483549
    Attachments = View.extend({ 
    37293830module.exports = Attachments;
    37303831
    37313832},{}],32:[function(require,module,exports){
     3833var View = wp.media.View,
     3834        mediaTrash = wp.media.view.settings.mediaTrash,
     3835        l10n = wp.media.view.l10n,
     3836        $ = jQuery,
     3837        AttachmentsBrowser;
     3838
    37323839/**
    37333840 * wp.media.view.AttachmentsBrowser
    37343841 *
     3842 * @memberOf wp.media.view
     3843 *
    37353844 * @class
    37363845 * @augments wp.media.View
    37373846 * @augments wp.Backbone.View
    module.exports = Attachments; 
    37493858 * @param {boolean|string} [options.sidebar=true]  Whether to create a sidebar for the browser.
    37503859 *                                                 Accepts true, false, and 'errors'.
    37513860 */
    3752 var View = wp.media.View,
    3753         mediaTrash = wp.media.view.settings.mediaTrash,
    3754         l10n = wp.media.view.l10n,
    3755         $ = jQuery,
    3756         AttachmentsBrowser;
    3757 
    3758 AttachmentsBrowser = View.extend({
     3861AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.prototype */{
    37593862        tagName:   'div',
    37603863        className: 'attachments-browser',
    37613864
    AttachmentsBrowser = View.extend({ 
    42054308module.exports = AttachmentsBrowser;
    42064309
    42074310},{}],33:[function(require,module,exports){
     4311var Attachments = wp.media.view.Attachments,
     4312        Selection;
     4313
    42084314/**
    42094315 * wp.media.view.Attachments.Selection
    42104316 *
     4317 * @memberOf wp.media.view.Attachments
     4318 *
    42114319 * @class
    42124320 * @augments wp.media.view.Attachments
    42134321 * @augments wp.media.View
    42144322 * @augments wp.Backbone.View
    42154323 * @augments Backbone.View
    42164324 */
    4217 var Attachments = wp.media.view.Attachments,
    4218         Selection;
    4219 
    4220 Selection = Attachments.extend({
     4325Selection = Attachments.extend(/** @lends wp.media.view.Attachments.Selection.prototype */{
    42214326        events: {},
    42224327        initialize: function() {
    42234328                _.defaults( this.options, {
    Selection = Attachments.extend({ 
    42354340module.exports = Selection;
    42364341
    42374342},{}],34:[function(require,module,exports){
     4343var $ = Backbone.$,
     4344        ButtonGroup;
     4345
    42384346/**
    42394347 * wp.media.view.ButtonGroup
    42404348 *
     4349 * @memberOf wp.media.view
     4350 *
    42414351 * @class
    42424352 * @augments wp.media.View
    42434353 * @augments wp.Backbone.View
    42444354 * @augments Backbone.View
    42454355 */
    4246 var $ = Backbone.$,
    4247         ButtonGroup;
    4248 
    4249 ButtonGroup = wp.media.View.extend({
     4356ButtonGroup = wp.media.View.extend(/** @lends wp.media.view.ButtonGroup.prototype */{
    42504357        tagName:   'div',
    42514358        className: 'button-group button-large media-button-group',
    42524359
    module.exports = ButtonGroup; 
    42844391/**
    42854392 * wp.media.view.Button
    42864393 *
     4394 * @memberOf wp.media.view
     4395 *
    42874396 * @class
    42884397 * @augments wp.media.View
    42894398 * @augments wp.Backbone.View
    42904399 * @augments Backbone.View
    42914400 */
    4292 var Button = wp.media.View.extend({
     4401var Button = wp.media.View.extend(/** @lends wp.media.view.Button.prototype */{
    42934402        tagName:    'button',
    42944403        className:  'media-button',
    42954404        attributes: { type: 'button' },
    var Button = wp.media.View.extend({ 
    43674476module.exports = Button;
    43684477
    43694478},{}],36:[function(require,module,exports){
     4479var View = wp.media.View,
     4480        UploaderStatus = wp.media.view.UploaderStatus,
     4481        l10n = wp.media.view.l10n,
     4482        $ = jQuery,
     4483        Cropper;
     4484
    43704485/**
    43714486 * wp.media.view.Cropper
    43724487 *
    module.exports = Button; 
    43764491 * wp.customize.HeaderControl.calculateImageSelectOptions via
    43774492 * wp.customize.HeaderControl.openMM.
    43784493 *
     4494 * @memberOf wp.media.view
     4495 *
    43794496 * @class
    43804497 * @augments wp.media.View
    43814498 * @augments wp.Backbone.View
    43824499 * @augments Backbone.View
    43834500 */
    4384 var View = wp.media.View,
    4385         UploaderStatus = wp.media.view.UploaderStatus,
    4386         l10n = wp.media.view.l10n,
    4387         $ = jQuery,
    4388         Cropper;
    4389 
    4390 Cropper = View.extend({
     4501Cropper = View.extend(/** @lends wp.media.view.Cropper.prototype */{
    43914502        className: 'crop-content',
    43924503        template: wp.template('crop-content'),
    43934504        initialize: function() {
    Cropper = View.extend({ 
    44344545module.exports = Cropper;
    44354546
    44364547},{}],37:[function(require,module,exports){
     4548var View = wp.media.View,
     4549        EditImage;
     4550
    44374551/**
    44384552 * wp.media.view.EditImage
    44394553 *
     4554 * @memberOf wp.media.view
     4555 *
    44404556 * @class
    44414557 * @augments wp.media.View
    44424558 * @augments wp.Backbone.View
    44434559 * @augments Backbone.View
    44444560 */
    4445 var View = wp.media.View,
    4446         EditImage;
    4447 
    4448 EditImage = View.extend({
     4561EditImage = View.extend(/** @lends wp.media.view.EditImage.prototype */{
    44494562        className: 'image-editor',
    44504563        template: wp.template('image-editor'),
    44514564
    module.exports = EditImage; 
    44934606/**
    44944607 * wp.media.view.Embed
    44954608 *
     4609 * @memberOf wp.media.view
     4610 *
    44964611 * @class
    44974612 * @augments wp.media.View
    44984613 * @augments wp.Backbone.View
    44994614 * @augments Backbone.View
    45004615 */
    4501 var Embed = wp.media.View.extend({
     4616var Embed = wp.media.View.extend(/** @lends wp.media.view.Ember.prototype */{
    45024617        className: 'media-embed',
    45034618
    45044619        initialize: function() {
    var Embed = wp.media.View.extend({ 
    45544669module.exports = Embed;
    45554670
    45564671},{}],39:[function(require,module,exports){
     4672var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     4673        EmbedImage;
     4674
    45574675/**
    45584676 * wp.media.view.EmbedImage
    45594677 *
     4678 * @memberOf wp.media.view
     4679 *
    45604680 * @class
    45614681 * @augments wp.media.view.Settings.AttachmentDisplay
    45624682 * @augments wp.media.view.Settings
    module.exports = Embed; 
    45644684 * @augments wp.Backbone.View
    45654685 * @augments Backbone.View
    45664686 */
    4567 var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
    4568         EmbedImage;
    4569 
    4570 EmbedImage = AttachmentDisplay.extend({
     4687EmbedImage = AttachmentDisplay.extend(/** @lends wp.media.view.EmbedImage.prototype */{
    45714688        className: 'embed-media-settings',
    45724689        template:  wp.template('embed-image-settings'),
    45734690
    EmbedImage = AttachmentDisplay.extend({ 
    45874704module.exports = EmbedImage;
    45884705
    45894706},{}],40:[function(require,module,exports){
     4707var $ = jQuery,
     4708        EmbedLink;
     4709
    45904710/**
    45914711 * wp.media.view.EmbedLink
    45924712 *
     4713 * @memberOf wp.media.view
     4714 *
    45934715 * @class
    45944716 * @augments wp.media.view.Settings
    45954717 * @augments wp.media.View
    45964718 * @augments wp.Backbone.View
    45974719 * @augments Backbone.View
    45984720 */
    4599 var $ = jQuery,
    4600         EmbedLink;
    4601 
    4602 EmbedLink = wp.media.view.Settings.extend({
     4721EmbedLink = wp.media.view.Settings.extend(/** @lends wp.media.view.EmbedLink.prototype */{
    46034722        className: 'embed-link-settings',
    46044723        template:  wp.template('embed-link-settings'),
    46054724
    EmbedLink = wp.media.view.Settings.extend({ 
    46844803module.exports = EmbedLink;
    46854804
    46864805},{}],41:[function(require,module,exports){
     4806var View = wp.media.View,
     4807        $ = jQuery,
     4808        EmbedUrl;
     4809
    46874810/**
    46884811 * wp.media.view.EmbedUrl
    46894812 *
     4813 * @memberOf wp.media.view
     4814 *
    46904815 * @class
    46914816 * @augments wp.media.View
    46924817 * @augments wp.Backbone.View
    46934818 * @augments Backbone.View
    46944819 */
    4695 var View = wp.media.View,
    4696         $ = jQuery,
    4697         EmbedUrl;
    4698 
    4699 EmbedUrl = View.extend({
     4820EmbedUrl = View.extend(/** @lends wp.media.view.EmbedUrl.prototype */{
    47004821        tagName:   'label',
    47014822        className: 'embed-url',
    47024823
    module.exports = EmbedUrl; 
    47664887/**
    47674888 * wp.media.view.FocusManager
    47684889 *
     4890 * @memberOf wp.media.view
     4891 *
    47694892 * @class
    47704893 * @augments wp.media.View
    47714894 * @augments wp.Backbone.View
    47724895 * @augments Backbone.View
    47734896 */
    4774 var FocusManager = wp.media.View.extend({
     4897var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.prototype */{
    47754898
    47764899        events: {
    47774900                'keydown': 'constrainTabbing'
    module.exports = FocusManager; 
    48154938 * A frame is a composite view consisting of one or more regions and one or more
    48164939 * states.
    48174940 *
     4941 * @memberOf wp.media.view
     4942 *
    48184943 * @see wp.media.controller.State
    48194944 * @see wp.media.controller.Region
    48204945 *
    module.exports = FocusManager; 
    48244949 * @augments Backbone.View
    48254950 * @mixes wp.media.controller.StateMachine
    48264951 */
    4827 var Frame = wp.media.View.extend({
     4952var Frame = wp.media.View.extend(/** @lends wp.media.view.Frame.prototype */{
    48284953        initialize: function() {
    48294954                _.defaults( this.options, {
    48304955                        mode: [ 'select' ]
    var Frame = wp.media.View.extend({ 
    49525077                /**
    49535078                 * Frame mode deactivation event.
    49545079                 *
    4955                  * @event this#{mode}:deactivate
     5080                 * @event wp.media.view.Frame#{mode}:deactivate
    49565081                 */
    49575082                this.trigger( mode + ':deactivate' );
    49585083
    _.extend( Frame.prototype, wp.media.controller.StateMachine.prototype ); 
    49755100module.exports = Frame;
    49765101
    49775102},{}],44:[function(require,module,exports){
     5103var Select = wp.media.view.MediaFrame.Select,
     5104        l10n = wp.media.view.l10n,
     5105        ImageDetails;
     5106
    49785107/**
    49795108 * wp.media.view.MediaFrame.ImageDetails
    49805109 *
    49815110 * A media frame for manipulating an image that's already been inserted
    49825111 * into a post.
    49835112 *
     5113 * @memberOf wp.media.view.MediaFrame
     5114 *
    49845115 * @class
    49855116 * @augments wp.media.view.MediaFrame.Select
    49865117 * @augments wp.media.view.MediaFrame
    module.exports = Frame; 
    49905121 * @augments Backbone.View
    49915122 * @mixes wp.media.controller.StateMachine
    49925123 */
    4993 var Select = wp.media.view.MediaFrame.Select,
    4994         l10n = wp.media.view.l10n,
    4995         ImageDetails;
    4996 
    4997 ImageDetails = Select.extend({
     5124ImageDetails = Select.extend(/** @lends wp.media.view.MediaFrame.ImageDetails.prototype */{
    49985125        defaults: {
    49995126                id:      'image',
    50005127                url:     '',
    ImageDetails = Select.extend({ 
    51535280module.exports = ImageDetails;
    51545281
    51555282},{}],45:[function(require,module,exports){
     5283var Select = wp.media.view.MediaFrame.Select,
     5284        Library = wp.media.controller.Library,
     5285        l10n = wp.media.view.l10n,
     5286        Post;
     5287
    51565288/**
    51575289 * wp.media.view.MediaFrame.Post
    51585290 *
    51595291 * The frame for manipulating media on the Edit Post page.
    51605292 *
     5293 * @memberOf wp.media.view.MediaFrame
     5294 *
    51615295 * @class
    51625296 * @augments wp.media.view.MediaFrame.Select
    51635297 * @augments wp.media.view.MediaFrame
    module.exports = ImageDetails; 
    51675301 * @augments Backbone.View
    51685302 * @mixes wp.media.controller.StateMachine
    51695303 */
    5170 var Select = wp.media.view.MediaFrame.Select,
    5171         Library = wp.media.controller.Library,
    5172         l10n = wp.media.view.l10n,
    5173         Post;
    5174 
    5175 Post = Select.extend({
     5304Post = Select.extend(/** @lends wp.media.view.MediaFrame.Post.prototype */{
    51765305        initialize: function() {
    51775306                this.counts = {
    51785307                        audio: {
    Post = Select.extend({ 
    55985727                        requires: { selection: true },
    55995728
    56005729                        /**
     5730                         * @callback
    56015731                         * @fires wp.media.controller.State#insert
    56025732                         */
    56035733                        click: function() {
    Post = Select.extend({ 
    58886018module.exports = Post;
    58896019
    58906020},{}],46:[function(require,module,exports){
     6021var MediaFrame = wp.media.view.MediaFrame,
     6022        l10n = wp.media.view.l10n,
     6023        Select;
     6024
    58916025/**
    58926026 * wp.media.view.MediaFrame.Select
    58936027 *
    58946028 * A frame for selecting an item or items from the media library.
    58956029 *
     6030 * @memberOf wp.media.view.MediaFrame
     6031 *
    58966032 * @class
    58976033 * @augments wp.media.view.MediaFrame
    58986034 * @augments wp.media.view.Frame
    module.exports = Post; 
    59016037 * @augments Backbone.View
    59026038 * @mixes wp.media.controller.StateMachine
    59036039 */
    5904 
    5905 var MediaFrame = wp.media.view.MediaFrame,
    5906         l10n = wp.media.view.l10n,
    5907         Select;
    5908 
    5909 Select = MediaFrame.extend({
     6040Select = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.Select.prototype */{
    59106041        initialize: function() {
    59116042                // Call 'initialize' directly on the parent class.
    59126043                MediaFrame.prototype.initialize.apply( this, arguments );
    module.exports = Select; 
    60626193/**
    60636194 * wp.media.view.Iframe
    60646195 *
     6196 * @memberOf wp.media.view
     6197 *
    60656198 * @class
    60666199 * @augments wp.media.View
    60676200 * @augments wp.Backbone.View
    60686201 * @augments Backbone.View
    60696202 */
    6070 var Iframe = wp.media.View.extend({
     6203var Iframe = wp.media.View.extend(/** @lends wp.media.view.Iframe.prototype */{
    60716204        className: 'media-iframe',
    60726205        /**
    60736206         * @returns {wp.media.view.Iframe} Returns itself to allow chaining
    var Iframe = wp.media.View.extend({ 
    60836216module.exports = Iframe;
    60846217
    60856218},{}],48:[function(require,module,exports){
     6219var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     6220        $ = jQuery,
     6221        ImageDetails;
     6222
    60866223/**
    60876224 * wp.media.view.ImageDetails
    60886225 *
     6226 * @memberOf wp.media.view
     6227 *
    60896228 * @class
    60906229 * @augments wp.media.view.Settings.AttachmentDisplay
    60916230 * @augments wp.media.view.Settings
    module.exports = Iframe; 
    60936232 * @augments wp.Backbone.View
    60946233 * @augments Backbone.View
    60956234 */
    6096 var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
    6097         $ = jQuery,
    6098         ImageDetails;
    6099 
    6100 ImageDetails = AttachmentDisplay.extend({
     6235ImageDetails = AttachmentDisplay.extend(/** @lends wp.media.view.ImageDetails.prototype */{
    61016236        className: 'image-details',
    61026237        template:  wp.template('image-details'),
    61036238        events: _.defaults( AttachmentDisplay.prototype.events, {
    module.exports = ImageDetails; 
    62546389/**
    62556390 * wp.media.view.Label
    62566391 *
     6392 * @memberOf wp.media.view
     6393 *
    62576394 * @class
    62586395 * @augments wp.media.View
    62596396 * @augments wp.Backbone.View
    62606397 * @augments Backbone.View
    62616398 */
    6262 var Label = wp.media.View.extend({
     6399var Label = wp.media.View.extend(/** @lends wp.media.view.Label.prototype */{
    62636400        tagName: 'label',
    62646401        className: 'screen-reader-text',
    62656402
    var Label = wp.media.View.extend({ 
    62776414module.exports = Label;
    62786415
    62796416},{}],50:[function(require,module,exports){
     6417var Frame = wp.media.view.Frame,
     6418        $ = jQuery,
     6419        MediaFrame;
     6420
    62806421/**
    62816422 * wp.media.view.MediaFrame
    62826423 *
    62836424 * The frame used to create the media modal.
    62846425 *
     6426 * @memberOf wp.media.view
     6427 *
    62856428 * @class
    62866429 * @augments wp.media.view.Frame
    62876430 * @augments wp.media.View
    module.exports = Label; 
    62896432 * @augments Backbone.View
    62906433 * @mixes wp.media.controller.StateMachine
    62916434 */
    6292 var Frame = wp.media.view.Frame,
    6293         $ = jQuery,
    6294         MediaFrame;
    6295 
    6296 MediaFrame = Frame.extend({
     6435MediaFrame = Frame.extend(/** @lends wp.media.view.MediaFrame.prototype */{
    62976436        className: 'media-frame',
    62986437        template:  wp.template('media-frame'),
    62996438        regions:   ['menu','title','content','toolbar','router'],
    MediaFrame = Frame.extend({ 
    63036442        },
    63046443
    63056444        /**
    6306          * @global wp.Uploader
     6445         * @constructs
    63076446         */
    63086447        initialize: function() {
    63096448                Frame.prototype.initialize.apply( this, arguments );
    MediaFrame = Frame.extend({ 
    65116650// Map some of the modal's methods to the frame.
    65126651_.each(['open','close','attach','detach','escape'], function( method ) {
    65136652        /**
     6653         * @function open
     6654         * @memberOf wp.media.view.MediaFrame
     6655         * @instance
     6656         *
     6657         * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining
     6658         */
     6659        /**
     6660         * @function close
     6661         * @memberOf wp.media.view.MediaFrame
     6662         * @instance
     6663         *
     6664         * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining
     6665         */
     6666        /**
     6667         * @function attach
     6668         * @memberOf wp.media.view.MediaFrame
     6669         * @instance
     6670         *
     6671         * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining
     6672         */
     6673        /**
     6674         * @function detach
     6675         * @memberOf wp.media.view.MediaFrame
     6676         * @instance
     6677         *
     6678         * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining
     6679         */
     6680        /**
     6681         * @function escape
     6682         * @memberOf wp.media.view.MediaFrame
     6683         * @instance
     6684         *
    65146685         * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining
    65156686         */
    65166687        MediaFrame.prototype[ method ] = function() {
    _.each(['open','close','attach','detach','escape'], function( method ) { 
    65246695module.exports = MediaFrame;
    65256696
    65266697},{}],51:[function(require,module,exports){
     6698var $ = jQuery,
     6699        MenuItem;
     6700
    65276701/**
    65286702 * wp.media.view.MenuItem
    65296703 *
     6704 * @memberOf wp.media.view
     6705 *
    65306706 * @class
    65316707 * @augments wp.media.View
    65326708 * @augments wp.Backbone.View
    65336709 * @augments Backbone.View
    65346710 */
    6535 var $ = jQuery,
    6536         MenuItem;
    6537 
    6538 MenuItem = wp.media.View.extend({
     6711MenuItem = wp.media.View.extend(/** @lends wp.media.view.MenuItem.prototype */{
    65396712        tagName:   'a',
    65406713        className: 'media-menu-item',
    65416714
    MenuItem = wp.media.View.extend({ 
    65966769module.exports = MenuItem;
    65976770
    65986771},{}],52:[function(require,module,exports){
     6772var MenuItem = wp.media.view.MenuItem,
     6773        PriorityList = wp.media.view.PriorityList,
     6774        Menu;
     6775
    65996776/**
    66006777 * wp.media.view.Menu
    66016778 *
     6779 * @memberOf wp.media.view
     6780 *
    66026781 * @class
    66036782 * @augments wp.media.view.PriorityList
    66046783 * @augments wp.media.View
    66056784 * @augments wp.Backbone.View
    66066785 * @augments Backbone.View
    66076786 */
    6608 var MenuItem = wp.media.view.MenuItem,
    6609         PriorityList = wp.media.view.PriorityList,
    6610         Menu;
    6611 
    6612 Menu = PriorityList.extend({
     6787Menu = PriorityList.extend(/** @lends wp.media.view.Menu.prototype */{
    66136788        tagName:   'div',
    66146789        className: 'media-menu',
    66156790        property:  'state',
    Menu = PriorityList.extend({ 
    67136888module.exports = Menu;
    67146889
    67156890},{}],53:[function(require,module,exports){
     6891var $ = jQuery,
     6892        Modal;
     6893
    67166894/**
    67176895 * wp.media.view.Modal
    67186896 *
    67196897 * A modal view, which the media modal uses as its default container.
    67206898 *
     6899 * @memberOf wp.media.view
     6900 *
    67216901 * @class
    67226902 * @augments wp.media.View
    67236903 * @augments wp.Backbone.View
    67246904 * @augments Backbone.View
    67256905 */
    6726 var $ = jQuery,
    6727         Modal;
    6728 
    6729 Modal = wp.media.View.extend({
     6906Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
    67306907        tagName:  'div',
    67316908        template: wp.template('media-modal'),
    67326909
    module.exports = Modal; 
    69377114/**
    69387115 * wp.media.view.PriorityList
    69397116 *
     7117 * @memberOf wp.media.view
     7118 *
    69407119 * @class
    69417120 * @augments wp.media.View
    69427121 * @augments wp.Backbone.View
    69437122 * @augments Backbone.View
    69447123 */
    6945 var PriorityList = wp.media.View.extend({
     7124var PriorityList = wp.media.View.extend(/** @lends wp.media.view.PriorityList.prototype */{
    69467125        tagName:   'div',
    69477126
    69487127        initialize: function() {
    module.exports = PriorityList; 
    70347213/**
    70357214 * wp.media.view.RouterItem
    70367215 *
     7216 * @memberOf wp.media.view
     7217 *
    70377218 * @class
    70387219 * @augments wp.media.view.MenuItem
    70397220 * @augments wp.media.View
    70407221 * @augments wp.Backbone.View
    70417222 * @augments Backbone.View
    70427223 */
    7043 var RouterItem = wp.media.view.MenuItem.extend({
     7224var RouterItem = wp.media.view.MenuItem.extend(/** @lends wp.media.view.RouterItem.prototype */{
    70447225        /**
    70457226         * On click handler to activate the content region's corresponding mode.
    70467227         */
    var RouterItem = wp.media.view.MenuItem.extend({ 
    70557236module.exports = RouterItem;
    70567237
    70577238},{}],56:[function(require,module,exports){
     7239var Menu = wp.media.view.Menu,
     7240        Router;
     7241
    70587242/**
    70597243 * wp.media.view.Router
    70607244 *
     7245 * @memberOf wp.media.view
     7246 *
    70617247 * @class
    70627248 * @augments wp.media.view.Menu
    70637249 * @augments wp.media.view.PriorityList
    module.exports = RouterItem; 
    70657251 * @augments wp.Backbone.View
    70667252 * @augments Backbone.View
    70677253 */
    7068 var Menu = wp.media.view.Menu,
    7069         Router;
    7070 
    7071 Router = Menu.extend({
     7254Router = Menu.extend(/** @lends wp.media.view.Router.prototype */{
    70727255        tagName:   'div',
    70737256        className: 'media-router',
    70747257        property:  'contentMode',
    Router = Menu.extend({ 
    70927275module.exports = Router;
    70937276
    70947277},{}],57:[function(require,module,exports){
     7278var l10n = wp.media.view.l10n,
     7279        Search;
     7280
    70957281/**
    70967282 * wp.media.view.Search
    70977283 *
     7284 * @memberOf wp.media.view
     7285 *
    70987286 * @class
    70997287 * @augments wp.media.View
    71007288 * @augments wp.Backbone.View
    71017289 * @augments Backbone.View
    71027290 */
    7103 var l10n = wp.media.view.l10n,
    7104         Search;
    7105 
    7106 Search = wp.media.View.extend({
     7291Search = wp.media.View.extend(/** @lends wp.media.view.Search.prototype */{
    71077292        tagName:   'input',
    71087293        className: 'search',
    71097294        id:        'media-search-input',
    Search = wp.media.View.extend({ 
    71387323module.exports = Search;
    71397324
    71407325},{}],58:[function(require,module,exports){
     7326var l10n = wp.media.view.l10n,
     7327        Selection;
     7328
    71417329/**
    71427330 * wp.media.view.Selection
    71437331 *
     7332 * @memberOf wp.media.view
     7333 *
    71447334 * @class
    71457335 * @augments wp.media.View
    71467336 * @augments wp.Backbone.View
    71477337 * @augments Backbone.View
    71487338 */
    7149 var l10n = wp.media.view.l10n,
    7150         Selection;
    7151 
    7152 Selection = wp.media.View.extend({
     7339Selection = wp.media.View.extend(/** @lends wp.media.view.Selection.prototype */{
    71537340        tagName:   'div',
    71547341        className: 'media-selection',
    71557342        template:  wp.template('media-selection'),
    Selection = wp.media.View.extend({ 
    72217408module.exports = Selection;
    72227409
    72237410},{}],59:[function(require,module,exports){
     7411var View = wp.media.View,
     7412        $ = Backbone.$,
     7413        Settings;
     7414
    72247415/**
    72257416 * wp.media.view.Settings
    72267417 *
     7418 * @memberOf wp.media.view
     7419 *
    72277420 * @class
    72287421 * @augments wp.media.View
    72297422 * @augments wp.Backbone.View
    72307423 * @augments Backbone.View
    72317424 */
    7232 var View = wp.media.View,
    7233         $ = Backbone.$,
    7234         Settings;
    7235 
    7236 Settings = View.extend({
     7425Settings = View.extend(/** @lends wp.media.view.Settings.prototype */{
    72377426        events: {
    72387427                'click button':    'updateHandler',
    72397428                'change input':    'updateHandler',
    Settings = View.extend({ 
    73427531module.exports = Settings;
    73437532
    73447533},{}],60:[function(require,module,exports){
     7534var Settings = wp.media.view.Settings,
     7535        AttachmentDisplay;
     7536
    73457537/**
    73467538 * wp.media.view.Settings.AttachmentDisplay
    73477539 *
     7540 * @memberOf wp.media.view.Settings
     7541 *
    73487542 * @class
    73497543 * @augments wp.media.view.Settings
    73507544 * @augments wp.media.View
    73517545 * @augments wp.Backbone.View
    73527546 * @augments Backbone.View
    73537547 */
    7354 var Settings = wp.media.view.Settings,
    7355         AttachmentDisplay;
    7356 
    7357 AttachmentDisplay = Settings.extend({
     7548AttachmentDisplay = Settings.extend(/** @lends wp.media.view.Settings.AttachmentDisplay.prototype */{
    73587549        className: 'attachment-display-settings',
    73597550        template:  wp.template('attachment-display-settings'),
    73607551
    module.exports = AttachmentDisplay; 
    74397630/**
    74407631 * wp.media.view.Settings.Gallery
    74417632 *
     7633 * @memberOf wp.media.view.Settings
     7634 *
    74427635 * @class
    74437636 * @augments wp.media.view.Settings
    74447637 * @augments wp.media.View
    74457638 * @augments wp.Backbone.View
    74467639 * @augments Backbone.View
    74477640 */
    7448 var Gallery = wp.media.view.Settings.extend({
     7641var Gallery = wp.media.view.Settings.extend(/** @lends wp.media.view.Settings.Gallery.prototype */{
    74497642        className: 'collection-settings gallery-settings',
    74507643        template:  wp.template('gallery-settings')
    74517644});
    module.exports = Gallery; 
    74567649/**
    74577650 * wp.media.view.Settings.Playlist
    74587651 *
     7652 * @memberOf wp.media.view.Settings
     7653 *
    74597654 * @class
    74607655 * @augments wp.media.view.Settings
    74617656 * @augments wp.media.View
    74627657 * @augments wp.Backbone.View
    74637658 * @augments Backbone.View
    74647659 */
    7465 var Playlist = wp.media.view.Settings.extend({
     7660var Playlist = wp.media.view.Settings.extend(/** @lends wp.media.view.Settings.Playlist.prototype */{
    74667661        className: 'collection-settings playlist-settings',
    74677662        template:  wp.template('playlist-settings')
    74687663});
    module.exports = Playlist; 
    74737668/**
    74747669 * wp.media.view.Sidebar
    74757670 *
     7671 * @memberOf wp.media.view
     7672 *
    74767673 * @class
    74777674 * @augments wp.media.view.PriorityList
    74787675 * @augments wp.media.View
    74797676 * @augments wp.Backbone.View
    74807677 * @augments Backbone.View
    74817678 */
    7482 var Sidebar = wp.media.view.PriorityList.extend({
     7679var Sidebar = wp.media.view.PriorityList.extend(/** @lends wp.media.view.Sidebar.prototype */{
    74837680        className: 'media-sidebar'
    74847681});
    74857682
    74867683module.exports = Sidebar;
    74877684
    74887685},{}],64:[function(require,module,exports){
     7686var View = wp.media.view,
     7687        SiteIconCropper;
     7688
    74897689/**
    74907690 * wp.media.view.SiteIconCropper
    74917691 *
    module.exports = Sidebar; 
    74947694 * Takes imgAreaSelect options from
    74957695 * wp.customize.SiteIconControl.calculateImageSelectOptions.
    74967696 *
     7697 * @memberOf wp.media.view
     7698 *
    74977699 * @class
    74987700 * @augments wp.media.view.Cropper
    74997701 * @augments wp.media.View
    75007702 * @augments wp.Backbone.View
    75017703 * @augments Backbone.View
    75027704 */
    7503 var View = wp.media.view,
    7504         SiteIconCropper;
    7505 
    7506 SiteIconCropper = View.Cropper.extend({
     7705SiteIconCropper = View.Cropper.extend(/** @lends wp.media.view.SiteIconCropper.prototype */{
    75077706        className: 'crop-content site-icon',
    75087707
    75097708        ready: function () {
    SiteIconCropper = View.Cropper.extend({ 
    75297728module.exports = SiteIconCropper;
    75307729
    75317730},{}],65:[function(require,module,exports){
     7731var View = wp.media.View,
     7732        $ = jQuery,
     7733        SiteIconPreview;
     7734
    75327735/**
    75337736 * wp.media.view.SiteIconPreview
    75347737 *
    75357738 * Shows a preview of the Site Icon as a favicon and app icon while cropping.
    75367739 *
     7740 * @memberOf wp.media.view
     7741 *
    75377742 * @class
    75387743 * @augments wp.media.View
    75397744 * @augments wp.Backbone.View
    75407745 * @augments Backbone.View
    75417746 */
    7542 var View = wp.media.View,
    7543         $ = jQuery,
    7544         SiteIconPreview;
    7545 
    7546 SiteIconPreview = View.extend({
     7747SiteIconPreview = View.extend(/** @lends wp.media.view.SiteIconPreview.prototype */{
    75477748        className: 'site-icon-preview',
    75487749        template: wp.template( 'site-icon-preview' ),
    75497750
    module.exports = SiteIconPreview; 
    75887789/**
    75897790 * wp.media.view.Spinner
    75907791 *
     7792 * @memberOf wp.media.view
     7793 *
    75917794 * @class
    75927795 * @augments wp.media.View
    75937796 * @augments wp.Backbone.View
    75947797 * @augments Backbone.View
    75957798 */
    7596 var Spinner = wp.media.View.extend({
     7799var Spinner = wp.media.View.extend(/** @lends wp.media.view.Spinner.prototype */{
    75977800        tagName:   'span',
    75987801        className: 'spinner',
    75997802        spinnerTimeout: false,
    var Spinner = wp.media.View.extend({ 
    76207823module.exports = Spinner;
    76217824
    76227825},{}],67:[function(require,module,exports){
     7826var View = wp.media.View,
     7827        Toolbar;
     7828
    76237829/**
    76247830 * wp.media.view.Toolbar
    76257831 *
    76267832 * A toolbar which consists of a primary and a secondary section. Each sections
    76277833 * can be filled with views.
    76287834 *
     7835 * @memberOf wp.media.view
     7836 *
    76297837 * @class
    76307838 * @augments wp.media.View
    76317839 * @augments wp.Backbone.View
    76327840 * @augments Backbone.View
    76337841 */
    7634 var View = wp.media.View,
    7635         Toolbar;
    7636 
    7637 Toolbar = View.extend({
     7842Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
    76387843        tagName:   'div',
    76397844        className: 'media-toolbar',
    76407845
    Toolbar = View.extend({ 
    77827987module.exports = Toolbar;
    77837988
    77847989},{}],68:[function(require,module,exports){
     7990var Select = wp.media.view.Toolbar.Select,
     7991        l10n = wp.media.view.l10n,
     7992        Embed;
     7993
    77857994/**
    77867995 * wp.media.view.Toolbar.Embed
    77877996 *
     7997 * @memberOf wp.media.view.Toolbar
     7998 *
    77887999 * @class
    77898000 * @augments wp.media.view.Toolbar.Select
    77908001 * @augments wp.media.view.Toolbar
    module.exports = Toolbar; 
    77928003 * @augments wp.Backbone.View
    77938004 * @augments Backbone.View
    77948005 */
    7795 var Select = wp.media.view.Toolbar.Select,
    7796         l10n = wp.media.view.l10n,
    7797         Embed;
    7798 
    7799 Embed = Select.extend({
     8006Embed = Select.extend(/** @lends wp.media.view.Toolbar.Embed.prototype */{
    78008007        initialize: function() {
    78018008                _.defaults( this.options, {
    78028009                        text: l10n.insertIntoPost,
    Embed = Select.extend({ 
    78198026module.exports = Embed;
    78208027
    78218028},{}],69:[function(require,module,exports){
     8029var Toolbar = wp.media.view.Toolbar,
     8030        l10n = wp.media.view.l10n,
     8031        Select;
     8032
    78228033/**
    78238034 * wp.media.view.Toolbar.Select
    78248035 *
     8036 * @memberOf wp.media.view.Toolbar
     8037 *
    78258038 * @class
    78268039 * @augments wp.media.view.Toolbar
    78278040 * @augments wp.media.View
    78288041 * @augments wp.Backbone.View
    78298042 * @augments Backbone.View
    78308043 */
    7831 var Toolbar = wp.media.view.Toolbar,
    7832         l10n = wp.media.view.l10n,
    7833         Select;
    7834 
    7835 Select = Toolbar.extend({
     8044Select = Toolbar.extend(/** @lends wp.media.view.Toolbar.Select.prototype */{
    78368045        initialize: function() {
    78378046                var options = this.options;
    78388047
    Select = Toolbar.extend({ 
    78898098module.exports = Select;
    78908099
    78918100},{}],70:[function(require,module,exports){
     8101var View = wp.media.View,
     8102        l10n = wp.media.view.l10n,
     8103        $ = jQuery,
     8104        EditorUploader;
     8105
    78928106/**
    78938107 * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap)
    78948108 * and relays drag'n'dropped files to a media workflow.
    78958109 *
    78968110 * wp.media.view.EditorUploader
    78978111 *
     8112 * @memberOf wp.media.view
     8113 *
    78988114 * @class
    78998115 * @augments wp.media.View
    79008116 * @augments wp.Backbone.View
    79018117 * @augments Backbone.View
    79028118 */
    7903 var View = wp.media.View,
    7904         l10n = wp.media.view.l10n,
    7905         $ = jQuery,
    7906         EditorUploader;
    7907 
    7908 EditorUploader = View.extend({
     8119EditorUploader = View.extend(/** @lends wp.media.view.EditorUploader.prototype */{
    79098120        tagName:   'div',
    79108121        className: 'uploader-editor',
    79118122        template:  wp.template( 'uploader-editor' ),
    EditorUploader = View.extend({ 
    81148325module.exports = EditorUploader;
    81158326
    81168327},{}],71:[function(require,module,exports){
     8328var View = wp.media.View,
     8329        UploaderInline;
     8330
    81178331/**
    81188332 * wp.media.view.UploaderInline
    81198333 *
    81208334 * The inline uploader that shows up in the 'Upload Files' tab.
    81218335 *
     8336 * @memberOf wp.media.view
     8337 *
    81228338 * @class
    81238339 * @augments wp.media.View
    81248340 * @augments wp.Backbone.View
    81258341 * @augments Backbone.View
    81268342 */
    8127 var View = wp.media.View,
    8128         UploaderInline;
    8129 
    8130 UploaderInline = View.extend({
     8343UploaderInline = View.extend(/** @lends wp.media.view.UploaderInline.prototype */{
    81318344        tagName:   'div',
    81328345        className: 'uploader-inline',
    81338346        template:  wp.template('uploader-inline'),
    module.exports = UploaderInline; 
    82578470/**
    82588471 * wp.media.view.UploaderStatusError
    82598472 *
     8473 * @memberOf wp.media.view
     8474 *
    82608475 * @class
    82618476 * @augments wp.media.View
    82628477 * @augments wp.Backbone.View
    82638478 * @augments Backbone.View
    82648479 */
    8265 var UploaderStatusError = wp.media.View.extend({
     8480var UploaderStatusError = wp.media.View.extend(/** @lends wp.media.view.UploaderStatusError.prototype */{
    82668481        className: 'upload-error',
    82678482        template:  wp.template('uploader-status-error')
    82688483});
    var UploaderStatusError = wp.media.View.extend({ 
    82708485module.exports = UploaderStatusError;
    82718486
    82728487},{}],73:[function(require,module,exports){
     8488var View = wp.media.View,
     8489        UploaderStatus;
     8490
    82738491/**
    82748492 * wp.media.view.UploaderStatus
    82758493 *
    82768494 * An uploader status for on-going uploads.
    82778495 *
     8496 * @memberOf wp.media.view
     8497 *
    82788498 * @class
    82798499 * @augments wp.media.View
    82808500 * @augments wp.Backbone.View
    82818501 * @augments Backbone.View
    82828502 */
    8283 var View = wp.media.View,
    8284         UploaderStatus;
    8285 
    8286 UploaderStatus = View.extend({
     8503UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype */{
    82878504        className: 'media-uploader-status',
    82888505        template:  wp.template('uploader-status'),
    82898506
    UploaderStatus = View.extend({ 
    83038520                this.errors.on( 'add', this.error, this );
    83048521        },
    83058522        /**
    8306          * @global wp.Uploader
    83078523         * @returns {wp.media.view.UploaderStatus}
    83088524         */
    83098525        dispose: function() {
    UploaderStatus = View.extend({ 
    83898605        },
    83908606
    83918607        /**
    8392          * @global wp.Uploader
    8393          *
    83948608         * @param {Object} event
    83958609         */
    83968610        dismiss: function( event ) {
    UploaderStatus = View.extend({ 
    84088622module.exports = UploaderStatus;
    84098623
    84108624},{}],74:[function(require,module,exports){
     8625var $ = jQuery,
     8626        UploaderWindow;
     8627
    84118628/**
    84128629 * wp.media.view.UploaderWindow
    84138630 *
    84148631 * An uploader window that allows for dragging and dropping media.
    84158632 *
     8633 * @memberOf wp.media.view
     8634 *
    84168635 * @class
    84178636 * @augments wp.media.View
    84188637 * @augments wp.Backbone.View
    module.exports = UploaderStatus; 
    84248643 * @param {jQuery} [options.uploader.dropzone] jQuery collection of the dropzone.
    84258644 * @param {object} [options.uploader.params]
    84268645 */
    8427 var $ = jQuery,
    8428         UploaderWindow;
    8429 
    8430 UploaderWindow = wp.media.View.extend({
     8646UploaderWindow = wp.media.View.extend(/** @lends wp.media.view.UploaderWindow.prototype */{
    84318647        tagName:   'div',
    84328648        className: 'uploader-window',
    84338649        template:  wp.template('uploader-window'),
    module.exports = UploaderWindow; 
    85318747 * This behavior has since been removed, and should not be used
    85328748 * outside of the media manager.
    85338749 *
     8750 * @memberOf wp.media
     8751 *
    85348752 * @class
    85358753 * @augments wp.Backbone.View
    85368754 * @augments Backbone.View
    85378755 */
    8538 var View = wp.Backbone.View.extend({
     8756var View = wp.Backbone.View.extend(/** @lends wp.media.View.prototype */{
    85398757        constructor: function( options ) {
    85408758                if ( options && options.controller ) {
    85418759                        this.controller = options.controller;
  • src/wp-includes/js/media/controllers/audio-details.js

    diff --git src/wp-includes/js/media/controllers/audio-details.js src/wp-includes/js/media/controllers/audio-details.js
    index 41c8a4f8a9..07fb99029f 100644
     
     1var State = wp.media.controller.State,
     2        l10n = wp.media.view.l10n,
     3        AudioDetails;
     4
    15/**
    26 * wp.media.controller.AudioDetails
    37 *
    48 * The controller for the Audio Details state
    59 *
     10 * @memberOf wp.media.controller
     11 *
    612 * @class
    713 * @augments wp.media.controller.State
    814 * @augments Backbone.Model
    915 */
    10 var State = wp.media.controller.State,
    11         l10n = wp.media.view.l10n,
    12         AudioDetails;
    13 
    14 AudioDetails = State.extend({
     16AudioDetails = State.extend(/** @lends wp.media.controller.AudioDetails.prototype */{
    1517        defaults: {
    1618                id: 'audio-details',
    1719                toolbar: 'audio-details',
  • src/wp-includes/js/media/controllers/collection-add.js

    diff --git src/wp-includes/js/media/controllers/collection-add.js src/wp-includes/js/media/controllers/collection-add.js
    index e361a5c9d0..fedcb308b7 100644
     
     1var Selection = wp.media.model.Selection,
     2        Library = wp.media.controller.Library,
     3        CollectionAdd;
     4
    15/**
    26 * wp.media.controller.CollectionAdd
    37 *
    48 * A state for adding attachments to a collection (e.g. video playlist).
    59 *
     10 * @memberOf wp.media.controller
     11 *
    612 * @class
    713 * @augments wp.media.controller.Library
    814 * @augments wp.media.controller.State
     
    3137 * @param {string}                     attributes.type                   The collection's media type. (e.g. 'video').
    3238 * @param {string}                     attributes.collectionType         The collection type. (e.g. 'playlist').
    3339 */
    34 var Selection = wp.media.model.Selection,
    35         Library = wp.media.controller.Library,
    36         CollectionAdd;
    37 
    38 CollectionAdd = Library.extend({
     40CollectionAdd = Library.extend(/** @lends wp.media.controller.CollectionAdd.prototype */{
    3941        defaults: _.defaults( {
    4042                // Selection defaults. @see media.model.Selection
    4143                multiple:      'add',
  • src/wp-includes/js/media/controllers/collection-edit.js

    diff --git src/wp-includes/js/media/controllers/collection-edit.js src/wp-includes/js/media/controllers/collection-edit.js
    index 8478976ab3..1c4478f258 100644
     
     1var Library = wp.media.controller.Library,
     2        l10n = wp.media.view.l10n,
     3        $ = jQuery,
     4        CollectionEdit;
     5
    16/**
    27 * wp.media.controller.CollectionEdit
    38 *
    49 * A state for editing a collection, which is used by audio and video playlists,
    510 * and can be used for other collections.
    611 *
     12 * @memberOf wp.media.controller
     13 *
    714 * @class
    815 * @augments wp.media.controller.Library
    916 * @augments wp.media.controller.State
     
    3340 * @param {string}                     attributes.type                   The collection's media type. (e.g. 'video').
    3441 * @param {string}                     attributes.collectionType         The collection type. (e.g. 'playlist').
    3542 */
    36 var Library = wp.media.controller.Library,
    37         l10n = wp.media.view.l10n,
    38         $ = jQuery,
    39         CollectionEdit;
    40 
    41 CollectionEdit = Library.extend({
     43CollectionEdit = Library.extend(/** @lends wp.media.controller.CollectionEdit.prototype */{
    4244        defaults: {
    4345                multiple:         false,
    4446                sortable:         true,
  • src/wp-includes/js/media/controllers/cropper.js

    diff --git src/wp-includes/js/media/controllers/cropper.js src/wp-includes/js/media/controllers/cropper.js
    index a23b226406..bfcaf11c9e 100644
     
     1var l10n = wp.media.view.l10n,
     2        Cropper;
     3
    14/**
    25 * wp.media.controller.Cropper
    36 *
    47 * A state for cropping an image.
    58 *
     9 * @memberOf wp.media.controller
     10 *
    611 * @class
    712 * @augments wp.media.controller.State
    813 * @augments Backbone.Model
    914 */
    10 var l10n = wp.media.view.l10n,
    11         Cropper;
    12 
    13 Cropper = wp.media.controller.State.extend({
     15Cropper = wp.media.controller.State.extend(/** @lends wp.media.controller.Cropper.prototype */{
    1416        defaults: {
    1517                id:          'cropper',
    1618                title:       l10n.cropImage,
  • src/wp-includes/js/media/controllers/customize-image-cropper.js

    diff --git src/wp-includes/js/media/controllers/customize-image-cropper.js src/wp-includes/js/media/controllers/customize-image-cropper.js
    index 3456ba36ff..5f076178ec 100644
     
     1var Controller = wp.media.controller,
     2        CustomizeImageCropper;
     3
    14/**
    25 * wp.media.controller.CustomizeImageCropper
    36 *
     7 * @memberOf wp.media.controller
     8 *
    49 * A state for cropping an image.
    510 *
    611 * @class
     
    813 * @augments wp.media.controller.State
    914 * @augments Backbone.Model
    1015 */
    11 var Controller = wp.media.controller,
    12         CustomizeImageCropper;
    13 
    14 CustomizeImageCropper = Controller.Cropper.extend({
     16CustomizeImageCropper = Controller.Cropper.extend(/** @lends wp.media.controller.CustomizeImageCropper.prototype */{
    1517        doCrop: function( attachment ) {
    1618                var cropDetails = attachment.get( 'cropDetails' ),
    1719                        control = this.get( 'control' ),
  • src/wp-includes/js/media/controllers/edit-attachment-metadata.js

    diff --git src/wp-includes/js/media/controllers/edit-attachment-metadata.js src/wp-includes/js/media/controllers/edit-attachment-metadata.js
    index 60a57c32ba..fe906f8bc2 100644
     
     1var l10n = wp.media.view.l10n,
     2        EditAttachmentMetadata;
     3
    14/**
    25 * wp.media.controller.EditAttachmentMetadata
    36 *
    47 * A state for editing an attachment's metadata.
    58 *
     9 * @memberOf wp.media.controller
     10 *
    611 * @class
    712 * @augments wp.media.controller.State
    813 * @augments Backbone.Model
    914 */
    10 var l10n = wp.media.view.l10n,
    11         EditAttachmentMetadata;
    12 
    13 EditAttachmentMetadata = wp.media.controller.State.extend({
     15EditAttachmentMetadata = wp.media.controller.State.extend(/** @lends wp.media.controller.EditAttachmentMetadata.prototype */{
    1416        defaults: {
    1517                id:      'edit-attachment',
    1618                // Title string passed to the frame's title region view.
  • src/wp-includes/js/media/controllers/edit-image.js

    diff --git src/wp-includes/js/media/controllers/edit-image.js src/wp-includes/js/media/controllers/edit-image.js
    index 448541f2f2..ce34d14cfb 100644
     
     1var l10n = wp.media.view.l10n,
     2        EditImage;
     3
    14/**
    25 * wp.media.controller.EditImage
    36 *
    47 * A state for editing (cropping, etc.) an image.
    58 *
     9 * @memberOf wp.media.controller
     10 *
    611 * @class
    712 * @augments wp.media.controller.State
    813 * @augments Backbone.Model
     
    1621 * @param {string}                    [attributes.menu=false]         Initial mode for the menu region.
    1722 * @param {string}                    [attributes.url]                Unused. @todo Consider removal.
    1823 */
    19 var l10n = wp.media.view.l10n,
    20         EditImage;
    21 
    22 EditImage = wp.media.controller.State.extend({
     24EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.EditImage.prototype */{
    2325        defaults: {
    2426                id:      'edit-image',
    2527                title:   l10n.editImage,
  • src/wp-includes/js/media/controllers/embed.js

    diff --git src/wp-includes/js/media/controllers/embed.js src/wp-includes/js/media/controllers/embed.js
    index d347db03db..2b271dcd0a 100644
     
     1var l10n = wp.media.view.l10n,
     2        $ = Backbone.$,
     3        Embed;
     4
    15/**
    26 * wp.media.controller.Embed
    37 *
    48 * A state for embedding media from a URL.
    59 *
     10 * @memberOf wp.media.controller
     11 *
    612 * @class
    713 * @augments wp.media.controller.State
    814 * @augments Backbone.Model
     
    1925 * @param {string} [attributes.url]                   The embed URL.
    2026 * @param {object} [attributes.metadata={}]           Properties of the embed, which will override attributes.url if set.
    2127 */
    22 var l10n = wp.media.view.l10n,
    23         $ = Backbone.$,
    24         Embed;
    25 
    26 Embed = wp.media.controller.State.extend({
     28Embed = wp.media.controller.State.extend(/** @lends wp.media.controller.Embed.prototype */{
    2729        defaults: {
    2830                id:       'embed',
    2931                title:    l10n.insertFromUrlTitle,
  • src/wp-includes/js/media/controllers/featured-image.js

    diff --git src/wp-includes/js/media/controllers/featured-image.js src/wp-includes/js/media/controllers/featured-image.js
    index 3e179f1c5e..e08129fa2d 100644
     
     1var Attachment = wp.media.model.Attachment,
     2        Library = wp.media.controller.Library,
     3        l10n = wp.media.view.l10n,
     4        FeaturedImage;
     5
    16/**
    27 * wp.media.controller.FeaturedImage
    38 *
    49 * A state for selecting a featured image for a post.
    510 *
     11 * @memberOf wp.media.controller
     12 *
    613 * @class
    714 * @augments wp.media.controller.Library
    815 * @augments wp.media.controller.State
     
    2936 * @param {boolean}                    [attributes.contentUserSetting=true]  Whether the content region's mode should be set and persisted per user.
    3037 * @param {boolean}                    [attributes.syncSelection=true]       Whether the Attachments selection should be persisted from the last state.
    3138 */
    32 var Attachment = wp.media.model.Attachment,
    33         Library = wp.media.controller.Library,
    34         l10n = wp.media.view.l10n,
    35         FeaturedImage;
    36 
    37 FeaturedImage = Library.extend({
     39FeaturedImage = Library.extend(/** @lends wp.media.controller.FeaturedImage.prototype */{
    3840        defaults: _.defaults({
    3941                id:            'featured-image',
    4042                title:         l10n.setFeaturedImageTitle,
  • src/wp-includes/js/media/controllers/gallery-add.js

    diff --git src/wp-includes/js/media/controllers/gallery-add.js src/wp-includes/js/media/controllers/gallery-add.js
    index 42d7dfa479..21e611bc33 100644
     
     1var Selection = wp.media.model.Selection,
     2        Library = wp.media.controller.Library,
     3        l10n = wp.media.view.l10n,
     4        GalleryAdd;
     5
    16/**
    27 * wp.media.controller.GalleryAdd
    38 *
    49 * A state for selecting more images to add to a gallery.
    510 *
     11 * @memberOf wp.media.controller
     12 *
    613 * @class
    714 * @augments wp.media.controller.Library
    815 * @augments wp.media.controller.State
     
    2936 * @param {boolean}                    [attributes.syncSelection=false]     Whether the Attachments selection should be persisted from the last state.
    3037 *                                                                          Defaults to false because for this state, because the library of the Edit Gallery state is the selection.
    3138 */
    32 var Selection = wp.media.model.Selection,
    33         Library = wp.media.controller.Library,
    34         l10n = wp.media.view.l10n,
    35         GalleryAdd;
    36 
    37 GalleryAdd = Library.extend({
     39GalleryAdd = Library.extend(/** @lends wp.media.controller.GalleryAdd.prototype */{
    3840        defaults: _.defaults({
    3941                id:            'gallery-library',
    4042                title:         l10n.addToGalleryTitle,
  • src/wp-includes/js/media/controllers/gallery-edit.js

    diff --git src/wp-includes/js/media/controllers/gallery-edit.js src/wp-includes/js/media/controllers/gallery-edit.js
    index cfdd7aa3dd..b07056e9dd 100644
     
     1var Library = wp.media.controller.Library,
     2        l10n = wp.media.view.l10n,
     3        GalleryEdit;
     4
    15/**
    26 * wp.media.controller.GalleryEdit
    37 *
    48 * A state for editing a gallery's images and settings.
    59 *
     10 * @memberOf wp.media.controller
     11 *
    612 * @class
    713 * @augments wp.media.controller.Library
    814 * @augments wp.media.controller.State
     
    3036 * @param {view}                       [attributes.AttachmentView]        The single `Attachment` view to be used in the `Attachments`.
    3137 *                                                                        If none supplied, defaults to wp.media.view.Attachment.EditLibrary.
    3238 */
    33 var Library = wp.media.controller.Library,
    34         l10n = wp.media.view.l10n,
    35         GalleryEdit;
    36 
    37 GalleryEdit = Library.extend({
     39GalleryEdit = Library.extend(/** @lends wp.media.controller.GalleryEdit.prototype */{
    3840        defaults: {
    3941                id:               'gallery-edit',
    4042                title:            l10n.editGalleryTitle,
  • src/wp-includes/js/media/controllers/image-details.js

    diff --git src/wp-includes/js/media/controllers/image-details.js src/wp-includes/js/media/controllers/image-details.js
    index 61462bbe79..2d4689e5a3 100644
     
     1var State = wp.media.controller.State,
     2        Library = wp.media.controller.Library,
     3        l10n = wp.media.view.l10n,
     4        ImageDetails;
     5
    16/**
    27 * wp.media.controller.ImageDetails
    38 *
    49 * A state for editing the attachment display settings of an image that's been
    510 * inserted into the editor.
    611 *
     12 * @memberOf wp.media.controller
     13 *
    714 * @class
    815 * @augments wp.media.controller.State
    916 * @augments Backbone.Model
     
    2229 * @todo This state inherits some defaults from media.controller.Library.prototype.defaults,
    2330 *       however this may not do anything.
    2431 */
    25 var State = wp.media.controller.State,
    26         Library = wp.media.controller.Library,
    27         l10n = wp.media.view.l10n,
    28         ImageDetails;
    29 
    30 ImageDetails = State.extend({
     32ImageDetails = State.extend(/** @lends wp.media.controller.ImageDetails.prototype */{
    3133        defaults: _.defaults({
    3234                id:       'image-details',
    3335                title:    l10n.imageDetailsTitle,
  • src/wp-includes/js/media/controllers/library.js

    diff --git src/wp-includes/js/media/controllers/library.js src/wp-includes/js/media/controllers/library.js
    index c16fab60b8..89dc0f4daa 100644
     
     1var l10n = wp.media.view.l10n,
     2        getUserSetting = window.getUserSetting,
     3        setUserSetting = window.setUserSetting,
     4        Library;
     5
    16/**
    27 * wp.media.controller.Library
    38 *
    49 * A state for choosing an attachment or group of attachments from the media library.
    510 *
     11 * @memberOf wp.media.controller
     12 *
    613 * @class
    714 * @augments wp.media.controller.State
    815 * @augments Backbone.Model
     
    3239 * @param {boolean}                         [attributes.contentUserSetting=true] Whether the content region's mode should be set and persisted per user.
    3340 * @param {boolean}                         [attributes.syncSelection=true]      Whether the Attachments selection should be persisted from the last state.
    3441 */
    35 var l10n = wp.media.view.l10n,
    36         getUserSetting = window.getUserSetting,
    37         setUserSetting = window.setUserSetting,
    38         Library;
    39 
    40 Library = wp.media.controller.State.extend({
     42Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Library.prototype */{
    4143        defaults: {
    4244                id:                 'library',
    4345                title:              l10n.mediaLibraryTitle,
  • src/wp-includes/js/media/controllers/media-library.js

    diff --git src/wp-includes/js/media/controllers/media-library.js src/wp-includes/js/media/controllers/media-library.js
    index 9d8983fed0..1f0fe74467 100644
     
    11/**
    22 * wp.media.controller.MediaLibrary
    33 *
     4 * @memberOf wp.media.controller
     5 *
    46 * @class
    57 * @augments wp.media.controller.Library
    68 * @augments wp.media.controller.State
     
    911var Library = wp.media.controller.Library,
    1012        MediaLibrary;
    1113
    12 MediaLibrary = Library.extend({
     14MediaLibrary = Library.extend(/** @lends wp.media.controller.MediaLibrary.prototype */{
    1315        defaults: _.defaults({
    1416                // Attachments browser defaults. @see media.view.AttachmentsBrowser
    1517                filterable:      'uploaded',
  • src/wp-includes/js/media/controllers/region.js

    diff --git src/wp-includes/js/media/controllers/region.js src/wp-includes/js/media/controllers/region.js
    index ca8d7a26c5..6c0e27e7b3 100644
     
    1111 * 'browse' mode t be activated on the 'content' view and then fills the region
    1212 * with an AttachmentsBrowser view.
    1313 *
     14 * @memberOf wp.media.controller
     15 *
    1416 * @class
    1517 *
    1618 * @param {object}        options          Options hash for the region.
    var Region = function( options ) { 
    2527// Use Backbone's self-propagating `extend` inheritance method.
    2628Region.extend = Backbone.Model.extend;
    2729
    28 _.extend( Region.prototype, {
     30_.extend( Region.prototype,/** @lends wp.media.controller.Region.prototype */{
    2931        /**
    3032         * Activate a mode.
    3133         *
    _.extend( Region.prototype, { 
    3335         *
    3436         * @param {string} mode
    3537         *
    36          * @fires this.view#{this.id}:activate:{this._mode}
    37          * @fires this.view#{this.id}:activate
    38          * @fires this.view#{this.id}:deactivate:{this._mode}
    39          * @fires this.view#{this.id}:deactivate
     38         * @fires Region#activate
     39         * @fires Region#deactivate
    4040         *
    4141         * @returns {wp.media.controller.Region} Returns itself to allow chaining.
    4242         */
    _.extend( Region.prototype, { 
    5252                /**
    5353                 * Region mode deactivation event.
    5454                 *
    55                  * @event this.view#{this.id}:deactivate:{this._mode}
    56                  * @event this.view#{this.id}:deactivate
     55                 * @event wp.media.controller.Region#deactivate
    5756                 */
    5857                this.trigger('deactivate');
    5958
    _.extend( Region.prototype, { 
    6362                /**
    6463                 * Region mode activation event.
    6564                 *
    66                  * @event this.view#{this.id}:activate:{this._mode}
    67                  * @event this.view#{this.id}:activate
     65                 * @event wp.media.controller.Region#activate
    6866                 */
    6967                this.trigger('activate');
    7068                return this;
    _.extend( Region.prototype, { 
    7674         *
    7775         * @param {string} mode
    7876         *
    79          * @fires this.view#{this.id}:create:{this._mode}
    80          * @fires this.view#{this.id}:create
    81          * @fires this.view#{this.id}:render:{this._mode}
    82          * @fires this.view#{this.id}:render
     77         * @fires Region#create
     78         * @fires Region#render
    8379         *
    8480         * @returns {wp.media.controller.Region} Returns itself to allow chaining
    8581         */
    _.extend( Region.prototype, { 
    9793                 *
    9894                 * Region view creation takes place in an event callback on the frame.
    9995                 *
    100                  * @event this.view#{this.id}:create:{this._mode}
    101                  * @event this.view#{this.id}:create
     96                 * @event wp.media.controller.Region#create
     97                 * @type {object}
     98                 * @property {object} view
    10299                 */
    103100                this.trigger( 'create', set );
    104101                view = set.view;
    _.extend( Region.prototype, { 
    108105                 *
    109106                 * Region view creation takes place in an event callback on the frame.
    110107                 *
    111                  * @event this.view#{this.id}:create:{this._mode}
    112                  * @event this.view#{this.id}:create
     108                 * @event wp.media.controller.Region#render
     109                 * @type {object}
    113110                 */
    114111                this.trigger( 'render', view );
    115112                if ( view ) {
  • src/wp-includes/js/media/controllers/replace-image.js

    diff --git src/wp-includes/js/media/controllers/replace-image.js src/wp-includes/js/media/controllers/replace-image.js
    index ed37a50de1..eb6823a22b 100644
     
     1var Library = wp.media.controller.Library,
     2        l10n = wp.media.view.l10n,
     3        ReplaceImage;
     4
    15/**
    26 * wp.media.controller.ReplaceImage
    37 *
    48 * A state for replacing an image.
    59 *
     10 * @memberOf wp.media.controller
     11 *
    612 * @class
    713 * @augments wp.media.controller.Library
    814 * @augments wp.media.controller.State
     
    2935 * @param {boolean}                    [attributes.contentUserSetting=true] Whether the content region's mode should be set and persisted per user.
    3036 * @param {boolean}                    [attributes.syncSelection=true]      Whether the Attachments selection should be persisted from the last state.
    3137 */
    32 var Library = wp.media.controller.Library,
    33         l10n = wp.media.view.l10n,
    34         ReplaceImage;
    35 
    36 ReplaceImage = Library.extend({
     38ReplaceImage = Library.extend(/** @lends wp.media.controller.ReplaceImage.prototype */{
    3739        defaults: _.defaults({
    3840                id:            'replace-image',
    3941                title:         l10n.replaceImageTitle,
  • src/wp-includes/js/media/controllers/site-icon-cropper.js

    diff --git src/wp-includes/js/media/controllers/site-icon-cropper.js src/wp-includes/js/media/controllers/site-icon-cropper.js
    index fc520a07c9..4cd407206a 100644
     
     1var Controller = wp.media.controller,
     2        SiteIconCropper;
     3
    14/**
    25 * wp.media.controller.SiteIconCropper
    36 *
    47 * A state for cropping a Site Icon.
    58 *
     9 * @memberOf wp.media.controller
     10 *
    611 * @class
    712 * @augments wp.media.controller.Cropper
    813 * @augments wp.media.controller.State
    914 * @augments Backbone.Model
    1015 */
    11 var Controller = wp.media.controller,
    12         SiteIconCropper;
    13 
    14 SiteIconCropper = Controller.Cropper.extend({
     16SiteIconCropper = Controller.Cropper.extend(/** @lends wp.media.controller.SiteIconCropper.prototype */{
    1517        activate: function() {
    1618                this.frame.on( 'content:create:crop', this.createCropContent, this );
    1719                this.frame.on( 'close', this.removeCropper, this );
  • src/wp-includes/js/media/controllers/state-machine.js

    diff --git src/wp-includes/js/media/controllers/state-machine.js src/wp-includes/js/media/controllers/state-machine.js
    index 8acf07f123..626f6c33ce 100644
     
    66 *
    77 * States are stored as models in a Backbone collection.
    88 *
     9 * @memberOf wp.media.controller
     10 *
    911 * @since 3.5.0
    1012 *
    1113 * @class
    var StateMachine = function( states ) { 
    2325// Use Backbone's self-propagating `extend` inheritance method.
    2426StateMachine.extend = Backbone.Model.extend;
    2527
    26 _.extend( StateMachine.prototype, Backbone.Events, {
     28_.extend( StateMachine.prototype, Backbone.Events,/** @lends wp.media.controller.StateMachine.prototype */{
    2729        /**
    2830         * Fetch a state.
    2931         *
    _.extend( StateMachine.prototype, Backbone.Events, { 
    107109// Map all event binding and triggering on a StateMachine to its `states` collection.
    108110_.each([ 'on', 'off', 'trigger' ], function( method ) {
    109111        /**
     112         * @function on
     113         * @memberOf wp.media.controller.StateMachine
     114         * @instance
     115         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
     116         */
     117        /**
     118         * @function off
     119         * @memberOf wp.media.controller.StateMachine
     120         * @instance
     121         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
     122         */
     123        /**
     124         * @function trigger
     125         * @memberOf wp.media.controller.StateMachine
     126         * @instance
    110127         * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining.
    111128         */
    112129        StateMachine.prototype[ method ] = function() {
  • src/wp-includes/js/media/controllers/state.js

    diff --git src/wp-includes/js/media/controllers/state.js src/wp-includes/js/media/controllers/state.js
    index e23ae8615f..666efe58f4 100644
     
    1212 *     'reset'      is not triggered automatically. It should be invoked by the
    1313 *                  proper controller to reset the state to its default.
    1414 *
     15 * @memberOf wp.media.controller
     16 *
    1517 * @class
    1618 * @augments Backbone.Model
    1719 */
    18 var State = Backbone.Model.extend({
     20var State = Backbone.Model.extend(/** @lends wp.media.controller.State.prototype */{
    1921        /**
    2022         * Constructor.
    2123         *
  • src/wp-includes/js/media/controllers/video-details.js

    diff --git src/wp-includes/js/media/controllers/video-details.js src/wp-includes/js/media/controllers/video-details.js
    index 00b301a1df..d54fcdbfa8 100644
     
    33 *
    44 * The controller for the Video Details state
    55 *
     6 * @memberOf wp.media.controller
     7 *
    68 * @class
    79 * @augments wp.media.controller.State
    810 * @augments Backbone.Model
    var State = wp.media.controller.State, 
    1113        l10n = wp.media.view.l10n,
    1214        VideoDetails;
    1315
    14 VideoDetails = State.extend({
     16VideoDetails = State.extend(/** @lends wp.media.controller.VideoDetails.prototype */{
    1517        defaults: {
    1618                id: 'video-details',
    1719                toolbar: 'video-details',
  • src/wp-includes/js/media/models.manifest.js

    diff --git src/wp-includes/js/media/models.manifest.js src/wp-includes/js/media/models.manifest.js
    index a40a471e50..27ce9b4732 100644
     
    11var $ = jQuery,
    22        Attachment, Attachments, l10n, media;
    33
     4/** @namespace wp */
    45window.wp = window.wp || {};
    56
    67/**
    window.wp = window.wp || {}; 
    89 *
    910 * Handles the default media experience.
    1011 *
     12 * @alias wp.media
     13 * @memberOf wp
     14 * @namespace
     15 *
    1116 * @param  {object} attributes The properties passed to the main media controller.
    1217 * @return {wp.media.view.MediaFrame} A media workflow.
    1318 */
    media = wp.media = function( attributes ) { 
    4651        return frame;
    4752};
    4853
     54/** @namespace wp.media.model */
     55/** @namespace wp.media.view */
     56/** @namespace wp.media.controller */
     57/** @namespace wp.media.frames */
    4958_.extend( media, { model: {}, view: {}, controller: {}, frames: {} });
    5059
    5160// Link any localized strings.
    media.compare = function( a, b, ac, bc ) { 
    8998        }
    9099};
    91100
    92 _.extend( media, {
     101_.extend( media, /** @lends wp.media */{
    93102        /**
    94103         * media.template( id )
    95104         *
  • src/wp-includes/js/media/models/attachment.js

    diff --git src/wp-includes/js/media/models/attachment.js src/wp-includes/js/media/models/attachment.js
    index 8fcae4c7c9..38f55187ad 100644
     
     1var $ = Backbone.$,
     2        Attachment;
     3
    14/**
    25 * wp.media.model.Attachment
    36 *
     7 * @memberOf wp.media.model
     8 *
    49 * @class
    510 * @augments Backbone.Model
    611 */
    7 var $ = Backbone.$,
    8         Attachment;
    9 
    10 Attachment = Backbone.Model.extend({
     12Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototype */{
    1113        /**
    1214         * Triggered when attachment details change
    1315         * Overrides Backbone.Model.sync
    Attachment = Backbone.Model.extend({ 
    134136                        model.set( model.parse( resp, xhr ), options );
    135137                });
    136138        }
    137 }, {
     139},/** @lends wp.media.model.Attachment */{
    138140        /**
    139141         * Create a new model on the static 'all' attachments collection and return it.
    140142         *
    141143         * @static
     144         *
    142145         * @param {Object} attrs
    143146         * @returns {wp.media.model.Attachment}
    144147         */
  • src/wp-includes/js/media/models/attachments.js

    diff --git src/wp-includes/js/media/models/attachments.js src/wp-includes/js/media/models/attachments.js
    index ea48813770..c76bbbdfac 100644
     
    77 * 'options.props.query = true', which will mirror the collection
    88 * to an Attachments Query collection - @see wp.media.model.Attachments.mirror().
    99 *
     10 * @memberOf wp.media.model
     11 *
    1012 * @class
    1113 * @augments Backbone.Collection
    1214 *
     
    2022 * @param {string} [options.filters]
    2123 *
    2224 */
    23 var Attachments = Backbone.Collection.extend({
     25var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachments.prototype */{
    2426        /**
    2527         * @type {wp.media.model.Attachment}
    2628         */
    var Attachments = Backbone.Collection.extend({ 
    418420                        attachments: attachments
    419421                });
    420422        }
    421 }, {
     423},/** @lends wp.media.model.Attachments */{
    422424        /**
    423425         * A function to compare two attachment models in an attachments collection.
    424426         *
    425427         * Used as the default comparator for instances of wp.media.model.Attachments
    426428         * and its subclasses. @see wp.media.model.Attachments._changeOrderby().
    427429         *
    428          * @static
    429          *
    430430         * @param {Backbone.Model} a
    431431         * @param {Backbone.Model} b
    432432         * @param {Object} options
    var Attachments = Backbone.Collection.extend({ 
    455455
    456456                return ( 'DESC' === order ) ? wp.media.compare( a, b, ac, bc ) : wp.media.compare( b, a, bc, ac );
    457457        },
    458         /**
    459          * @namespace
    460          */
     458        /** @namespace wp.media.model.Attachments.filters */
    461459        filters: {
    462460                /**
    463461                 * @static
  • src/wp-includes/js/media/models/post-image.js

    diff --git src/wp-includes/js/media/models/post-image.js src/wp-includes/js/media/models/post-image.js
    index c78fdf60ea..f1ff867e48 100644
     
    55 *
    66 * Used in the embedded image attachment display settings modal - @see wp.media.view.MediaFrame.ImageDetails.
    77 *
     8 * @memberOf wp.media.model
     9 *
    810 * @class
    911 * @augments Backbone.Model
    1012 *
    1113 * @param {int} [attributes]               Initial model attributes.
    1214 * @param {int} [attributes.attachment_id] ID of the attachment.
    1315 **/
    14 var PostImage = Backbone.Model.extend({
     16var PostImage = Backbone.Model.extend(/** @lends wp.media.model.PostImage.prototype */{
    1517
    1618        initialize: function( attributes ) {
    1719                var Attachment = wp.media.model.Attachment;
  • src/wp-includes/js/media/models/post-media.js

    diff --git src/wp-includes/js/media/models/post-media.js src/wp-includes/js/media/models/post-media.js
    index f1e28b4b23..fd642a724f 100644
     
    44 * Shared model class for audio and video. Updates the model after
    55 *   "Add Audio|Video Source" and "Replace Audio|Video" states return
    66 *
     7 * @memberOf wp.media.model
     8 *
    79 * @class
    810 * @augments Backbone.Model
    911 */
    10 var PostMedia = Backbone.Model.extend({
     12var PostMedia = Backbone.Model.extend(/** @lends wp.media.model.PostMedia.prototype */{
    1113        initialize: function() {
    1214                this.attachment = false;
    1315        },
  • src/wp-includes/js/media/models/query.js

    diff --git src/wp-includes/js/media/models/query.js src/wp-includes/js/media/models/query.js
    index 20ccfc45e7..420e4bbeae 100644
     
     1var Attachments = wp.media.model.Attachments,
     2        Query;
     3
    14/**
    25 * wp.media.model.Query
    36 *
     
    69 * Note: Do NOT change this.args after the query has been initialized.
    710 *       Things will break.
    811 *
     12 * @memberOf wp.media.model
     13 *
    914 * @class
    1015 * @augments wp.media.model.Attachments
    1116 * @augments Backbone.Collection
     
    1520 * @param {object} [options.args]                Attachments query arguments.
    1621 * @param {object} [options.args.posts_per_page]
    1722 */
    18 var Attachments = wp.media.model.Attachments,
    19         Query;
    20 
    21 Query = Attachments.extend({
     23Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
    2224        /**
    23          * @global wp.Uploader
    24          *
    2525         * @param {array}  [models=[]]  Array of initial models to populate the collection.
    2626         * @param {object} [options={}]
    2727         */
    Query = Attachments.extend({ 
    153153                        return fallback.sync.apply( this, arguments );
    154154                }
    155155        }
    156 }, {
     156}, /** @lends wp.media.model.Query */{
    157157        /**
    158158         * @readonly
    159159         */
  • src/wp-includes/js/media/models/selection.js

    diff --git src/wp-includes/js/media/models/selection.js src/wp-includes/js/media/models/selection.js
    index faa697dae2..894545f0fb 100644
     
     1var Attachments = wp.media.model.Attachments,
     2        Selection;
     3
    14/**
    25 * wp.media.model.Selection
    36 *
    47 * A selection of attachments.
    58 *
     9 * @memberOf wp.media.model
     10 *
    611 * @class
    712 * @augments wp.media.model.Attachments
    813 * @augments Backbone.Collection
    914 */
    10 var Attachments = wp.media.model.Attachments,
    11         Selection;
    12 
    13 Selection = Attachments.extend({
     15Selection = Attachments.extend(/** @lends wp.media.model.Selection.prototype */{
    1416        /**
    1517         * Refresh the `single` model whenever the selection changes.
    1618         * Binds `single` instead of using the context argument to ensure
  • src/wp-includes/js/media/routers/manage.js

    diff --git src/wp-includes/js/media/routers/manage.js src/wp-includes/js/media/routers/manage.js
    index 4b88aa3e01..d058078773 100644
     
    33 *
    44 * A router for handling the browser history and application state.
    55 *
     6 * @memberOf wp.media.view.MediaFrame.Manage
     7 *
    68 * @class
    79 * @augments Backbone.Router
    810 */
    9 var Router = Backbone.Router.extend({
     11var Router = Backbone.Router.extend(/** @lends wp.media.view.MediaFrame.Manage.Router.prototype */{
    1012        routes: {
    1113                'upload.php?item=:slug&mode=edit': 'editItem',
    1214                'upload.php?item=:slug':           'showItem',
  • src/wp-includes/js/media/utils/selection-sync.js

    diff --git src/wp-includes/js/media/utils/selection-sync.js src/wp-includes/js/media/utils/selection-sync.js
    index d22b419d89..f4b5c33527 100644
     
    66 * Allows for selecting multiple images in the Insert Media workflow, and then
    77 * switching to the Insert Gallery workflow while preserving the attachments selection.
    88 *
     9 * @memberOf wp.media
     10 *
    911 * @mixin
    1012 */
    1113var selectionSync = {
  • src/wp-includes/js/media/views/attachment-compat.js

    diff --git src/wp-includes/js/media/views/attachment-compat.js src/wp-includes/js/media/views/attachment-compat.js
    index a54c224650..d995d231bf 100644
     
     1var View = wp.media.View,
     2        AttachmentCompat;
     3
    14/**
    25 * wp.media.view.AttachmentCompat
    36 *
    47 * A view to display fields added via the `attachment_fields_to_edit` filter.
    58 *
     9 * @memberOf wp.media.view
     10 *
    611 * @class
    712 * @augments wp.media.View
    813 * @augments wp.Backbone.View
    914 * @augments Backbone.View
    1015 */
    11 var View = wp.media.View,
    12         AttachmentCompat;
    13 
    14 AttachmentCompat = View.extend({
     16AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototype */{
    1517        tagName:   'form',
    1618        className: 'compat-item',
    1719
  • src/wp-includes/js/media/views/attachment-filters.js

    diff --git src/wp-includes/js/media/views/attachment-filters.js src/wp-includes/js/media/views/attachment-filters.js
    index 7f1a9612df..a228043c39 100644
     
     1var $ = jQuery,
     2        AttachmentFilters;
     3
    14/**
    25 * wp.media.view.AttachmentFilters
    36 *
     7 * @memberOf wp.media.view
     8 *
    49 * @class
    510 * @augments wp.media.View
    611 * @augments wp.Backbone.View
    712 * @augments Backbone.View
    813 */
    9 var $ = jQuery,
    10         AttachmentFilters;
    11 
    12 AttachmentFilters = wp.media.View.extend({
     14AttachmentFilters = wp.media.View.extend(/** @lends wp.media.view.AttachmentFilters.prototype */{
    1315        tagName:   'select',
    1416        className: 'attachment-filters',
    1517        id:        'media-attachment-filters',
  • src/wp-includes/js/media/views/attachment-filters/all.js

    diff --git src/wp-includes/js/media/views/attachment-filters/all.js src/wp-includes/js/media/views/attachment-filters/all.js
    index cc79d12e83..fa85cbdba2 100644
     
     1var l10n = wp.media.view.l10n,
     2        All;
     3
    14/**
    25 * wp.media.view.AttachmentFilters.All
    36 *
     7 * @memberOf wp.media.view.AttachmentFilters
     8 *
    49 * @class
    510 * @augments wp.media.view.AttachmentFilters
    611 * @augments wp.media.View
    712 * @augments wp.Backbone.View
    813 * @augments Backbone.View
    914 */
    10 var l10n = wp.media.view.l10n,
    11         All;
    12 
    13 All = wp.media.view.AttachmentFilters.extend({
     15All = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.All.prototype */{
    1416        createFilters: function() {
    1517                var filters = {};
    1618
  • src/wp-includes/js/media/views/attachment-filters/date.js

    diff --git src/wp-includes/js/media/views/attachment-filters/date.js src/wp-includes/js/media/views/attachment-filters/date.js
    index 5508e1be41..4d1b8f9369 100644
     
     1var l10n = wp.media.view.l10n,
     2        DateFilter;
     3
    14/**
    25 * A filter dropdown for month/dates.
    36 *
     7 * @memberOf wp.media.view.AttachmentFilters
     8 *
    49 * @class
    510 * @augments wp.media.view.AttachmentFilters
    611 * @augments wp.media.View
    712 * @augments wp.Backbone.View
    813 * @augments Backbone.View
    914 */
    10 var l10n = wp.media.view.l10n,
    11         DateFilter;
    12 
    13 DateFilter = wp.media.view.AttachmentFilters.extend({
     15DateFilter = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.Date.prototype */{
    1416        id: 'media-attachment-date-filters',
    1517
    1618        createFilters: function() {
  • src/wp-includes/js/media/views/attachment-filters/uploaded.js

    diff --git src/wp-includes/js/media/views/attachment-filters/uploaded.js src/wp-includes/js/media/views/attachment-filters/uploaded.js
    index 7ae0a53dae..167d8d47ca 100644
     
     1var l10n = wp.media.view.l10n,
     2        Uploaded;
     3
    14/**
    25 * wp.media.view.AttachmentFilters.Uploaded
    36 *
     7 * @memberOf wp.media.view.AttachmentFilters
     8 *
    49 * @class
    510 * @augments wp.media.view.AttachmentFilters
    611 * @augments wp.media.View
    712 * @augments wp.Backbone.View
    813 * @augments Backbone.View
    914 */
    10 var l10n = wp.media.view.l10n,
    11         Uploaded;
    12 
    13 Uploaded = wp.media.view.AttachmentFilters.extend({
     15Uploaded = wp.media.view.AttachmentFilters.extend(/** @lends wp.media.view.AttachmentFilters.Uploaded.prototype */{
    1416        createFilters: function() {
    1517                var type = this.model.get('type'),
    1618                        types = wp.media.view.settings.mimeTypes,
  • src/wp-includes/js/media/views/attachment.js

    diff --git src/wp-includes/js/media/views/attachment.js src/wp-includes/js/media/views/attachment.js
    index f618555869..3c93d597b1 100644
     
     1var View = wp.media.View,
     2        $ = jQuery,
     3        Attachment;
     4
    15/**
    26 * wp.media.view.Attachment
    37 *
     8 * @memberOf wp.media.view
     9 *
    410 * @class
    511 * @augments wp.media.View
    612 * @augments wp.Backbone.View
    713 * @augments Backbone.View
    814 */
    9 var View = wp.media.View,
    10         $ = jQuery,
    11         Attachment;
    12 
    13 Attachment = View.extend({
     15Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
    1416        tagName:   'li',
    1517        className: 'attachment',
    1618        template:  wp.template('attachment'),
    _.each({ 
    518520        album:   '_syncAlbum'
    519521}, function( method, setting ) {
    520522        /**
     523         * @function _syncCaption
     524         * @memberOf wp.media.view.Attachment
     525         * @instance
     526         *
     527         * @param {Backbone.Model} model
     528         * @param {string} value
     529         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     530         */
     531        /**
     532         * @function _syncTitle
     533         * @memberOf wp.media.view.Attachment
     534         * @instance
     535         *
     536         * @param {Backbone.Model} model
     537         * @param {string} value
     538         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     539         */
     540        /**
     541         * @function _syncArtist
     542         * @memberOf wp.media.view.Attachment
     543         * @instance
     544         *
     545         * @param {Backbone.Model} model
     546         * @param {string} value
     547         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
     548         */
     549        /**
     550         * @function _syncAlbum
     551         * @memberOf wp.media.view.Attachment
     552         * @instance
     553         *
    521554         * @param {Backbone.Model} model
    522555         * @param {string} value
    523556         * @returns {wp.media.view.Attachment} Returns itself to allow chaining
  • src/wp-includes/js/media/views/attachment/details-two-column.js

    diff --git src/wp-includes/js/media/views/attachment/details-two-column.js src/wp-includes/js/media/views/attachment/details-two-column.js
    index 96a8fed8f2..7d0b441040 100644
     
     1var Details = wp.media.view.Attachment.Details,
     2        TwoColumn;
     3
    14/**
    25 * wp.media.view.Attachment.Details.TwoColumn
    36 *
    47 * A similar view to media.view.Attachment.Details
    58 * for use in the Edit Attachment modal.
    69 *
     10 * @memberOf wp.media.view.Attachment.Details
     11 *
    712 * @class
    813 * @augments wp.media.view.Attachment.Details
    914 * @augments wp.media.view.Attachment
     
    1116 * @augments wp.Backbone.View
    1217 * @augments Backbone.View
    1318 */
    14 var Details = wp.media.view.Attachment.Details,
    15         TwoColumn;
    16 
    17 TwoColumn = Details.extend({
     19TwoColumn = Details.extend(/** @lends wp.media.view.Attachment.Details.TowColumn.prototype */{
    1820        template: wp.template( 'attachment-details-two-column' ),
    1921
    2022        initialize: function() {
  • src/wp-includes/js/media/views/attachment/details.js

    diff --git src/wp-includes/js/media/views/attachment/details.js src/wp-includes/js/media/views/attachment/details.js
    index f356aaadb2..5dd682d559 100644
     
     1var Attachment = wp.media.view.Attachment,
     2        l10n = wp.media.view.l10n,
     3        Details;
     4
    15/**
    26 * wp.media.view.Attachment.Details
    37 *
     8 * @memberOf wp.media.view.Attachment
     9 *
    410 * @class
    511 * @augments wp.media.view.Attachment
    612 * @augments wp.media.View
    713 * @augments wp.Backbone.View
    814 * @augments Backbone.View
    915 */
    10 var Attachment = wp.media.view.Attachment,
    11         l10n = wp.media.view.l10n,
    12         Details;
    13 
    14 Details = Attachment.extend({
     16Details = Attachment.extend(/** @lends wp.media.view.Attachment.Details.prototype */{
    1517        tagName:   'div',
    1618        className: 'attachment-details',
    1719        template:  wp.template('attachment-details'),
  • src/wp-includes/js/media/views/attachment/edit-library.js

    diff --git src/wp-includes/js/media/views/attachment/edit-library.js src/wp-includes/js/media/views/attachment/edit-library.js
    index 4d9b23a72c..0d3d029f7a 100644
     
    11/**
    22 * wp.media.view.Attachment.EditLibrary
    33 *
     4 * @memberOf wp.media.view.Attachment
     5 *
    46 * @class
    57 * @augments wp.media.view.Attachment
    68 * @augments wp.media.View
    79 * @augments wp.Backbone.View
    810 * @augments Backbone.View
    911 */
    10 var EditLibrary = wp.media.view.Attachment.extend({
     12var EditLibrary = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.EditLibrary.prototype */{
    1113        buttons: {
    1214                close: true
    1315        }
  • src/wp-includes/js/media/views/attachment/edit-selection.js

    diff --git src/wp-includes/js/media/views/attachment/edit-selection.js src/wp-includes/js/media/views/attachment/edit-selection.js
    index 26c68480b2..f9c431854b 100644
     
    11/**
    2  * wp.media.view.Attachments.EditSelection
     2 * wp.media.view.Attachment.EditSelection
     3 *
     4 * @memberOf wp.media.view.Attachment
    35 *
    46 * @class
    57 * @augments wp.media.view.Attachment.Selection
     
    810 * @augments wp.Backbone.View
    911 * @augments Backbone.View
    1012 */
    11 var EditSelection = wp.media.view.Attachment.Selection.extend({
     13var EditSelection = wp.media.view.Attachment.Selection.extend(/** @lends wp.media.view.Attachment.EditSelection.prototype */{
    1214        buttons: {
    1315                close: true
    1416        }
  • src/wp-includes/js/media/views/attachment/library.js

    diff --git src/wp-includes/js/media/views/attachment/library.js src/wp-includes/js/media/views/attachment/library.js
    index ec0843054d..1bbea30c54 100644
     
    11/**
    22 * wp.media.view.Attachment.Library
    33 *
     4 * @memberOf wp.media.view.Attachment
     5 *
    46 * @class
    57 * @augments wp.media.view.Attachment
    68 * @augments wp.media.View
    79 * @augments wp.Backbone.View
    810 * @augments Backbone.View
    911 */
    10 var Library = wp.media.view.Attachment.extend({
     12var Library = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.Library.prototype */{
    1113        buttons: {
    1214                check: true
    1315        }
  • src/wp-includes/js/media/views/attachment/selection.js

    diff --git src/wp-includes/js/media/views/attachment/selection.js src/wp-includes/js/media/views/attachment/selection.js
    index 3eae465498..4ca9ddd52d 100644
     
    11/**
    22 * wp.media.view.Attachment.Selection
    33 *
     4 * @memberOf wp.media.view.Attachment
     5 *
    46 * @class
    57 * @augments wp.media.view.Attachment
    68 * @augments wp.media.View
    79 * @augments wp.Backbone.View
    810 * @augments Backbone.View
    911 */
    10 var Selection = wp.media.view.Attachment.extend({
     12var Selection = wp.media.view.Attachment.extend(/** @lends wp.media.view.Attachment.Selection.prototype */{
    1113        className: 'attachment selection',
    1214
    1315        // On click, just select the model, instead of removing the model from
  • src/wp-includes/js/media/views/attachments.js

    diff --git src/wp-includes/js/media/views/attachments.js src/wp-includes/js/media/views/attachments.js
    index d217ccc730..73edcec8f4 100644
     
     1var View = wp.media.View,
     2        $ = jQuery,
     3        Attachments;
     4
    15/**
    26 * wp.media.view.Attachments
    37 *
     8 * @memberOf wp.media.view
     9 *
    410 * @class
    511 * @augments wp.media.View
    612 * @augments wp.Backbone.View
    713 * @augments Backbone.View
    814 */
    9 var View = wp.media.View,
    10         $ = jQuery,
    11         Attachments;
    12 
    13 Attachments = View.extend({
     15Attachments = View.extend(/** @lends wp.media.view.Attachments.prototype */{
    1416        tagName:   'ul',
    1517        className: 'attachments',
    1618
  • src/wp-includes/js/media/views/attachments/browser.js

    diff --git src/wp-includes/js/media/views/attachments/browser.js src/wp-includes/js/media/views/attachments/browser.js
    index eb077d0749..0f4561b062 100644
     
     1var View = wp.media.View,
     2        mediaTrash = wp.media.view.settings.mediaTrash,
     3        l10n = wp.media.view.l10n,
     4        $ = jQuery,
     5        AttachmentsBrowser;
     6
    17/**
    28 * wp.media.view.AttachmentsBrowser
    39 *
     10 * @memberOf wp.media.view
     11 *
    412 * @class
    513 * @augments wp.media.View
    614 * @augments wp.Backbone.View
     
    1826 * @param {boolean|string} [options.sidebar=true]  Whether to create a sidebar for the browser.
    1927 *                                                 Accepts true, false, and 'errors'.
    2028 */
    21 var View = wp.media.View,
    22         mediaTrash = wp.media.view.settings.mediaTrash,
    23         l10n = wp.media.view.l10n,
    24         $ = jQuery,
    25         AttachmentsBrowser;
    26 
    27 AttachmentsBrowser = View.extend({
     29AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.prototype */{
    2830        tagName:   'div',
    2931        className: 'attachments-browser',
    3032
  • src/wp-includes/js/media/views/attachments/selection.js

    diff --git src/wp-includes/js/media/views/attachments/selection.js src/wp-includes/js/media/views/attachments/selection.js
    index 8c3c5d00a8..58eaadcd61 100644
     
     1var Attachments = wp.media.view.Attachments,
     2        Selection;
     3
    14/**
    25 * wp.media.view.Attachments.Selection
    36 *
     7 * @memberOf wp.media.view.Attachments
     8 *
    49 * @class
    510 * @augments wp.media.view.Attachments
    611 * @augments wp.media.View
    712 * @augments wp.Backbone.View
    813 * @augments Backbone.View
    914 */
    10 var Attachments = wp.media.view.Attachments,
    11         Selection;
    12 
    13 Selection = Attachments.extend({
     15Selection = Attachments.extend(/** @lends wp.media.view.Attachments.Selection.prototype */{
    1416        events: {},
    1517        initialize: function() {
    1618                _.defaults( this.options, {
  • src/wp-includes/js/media/views/audio-details.js

    diff --git src/wp-includes/js/media/views/audio-details.js src/wp-includes/js/media/views/audio-details.js
    index ec1ed8b33e..afafca3080 100644
     
     1var MediaDetails = wp.media.view.MediaDetails,
     2        AudioDetails;
     3
    14/**
    25 * wp.media.view.AudioDetails
    36 *
     7 * @memberOf wp.media.view
     8 *
    49 * @class
    510 * @augments wp.media.view.MediaDetails
    611 * @augments wp.media.view.Settings.AttachmentDisplay
     
    914 * @augments wp.Backbone.View
    1015 * @augments Backbone.View
    1116 */
    12 var MediaDetails = wp.media.view.MediaDetails,
    13         AudioDetails;
    14 
    15 AudioDetails = MediaDetails.extend({
     17AudioDetails = MediaDetails.extend(/** @lends wp.media.view.AudioDetails.prototype */{
    1618        className: 'audio-details',
    1719        template:  wp.template('audio-details'),
    1820
  • src/wp-includes/js/media/views/button-group.js

    diff --git src/wp-includes/js/media/views/button-group.js src/wp-includes/js/media/views/button-group.js
    index b0d97ba577..5b44d5ff11 100644
     
     1var $ = Backbone.$,
     2        ButtonGroup;
     3
    14/**
    25 * wp.media.view.ButtonGroup
    36 *
     7 * @memberOf wp.media.view
     8 *
    49 * @class
    510 * @augments wp.media.View
    611 * @augments wp.Backbone.View
    712 * @augments Backbone.View
    813 */
    9 var $ = Backbone.$,
    10         ButtonGroup;
    11 
    12 ButtonGroup = wp.media.View.extend({
     14ButtonGroup = wp.media.View.extend(/** @lends wp.media.view.ButtonGroup.prototype */{
    1315        tagName:   'div',
    1416        className: 'button-group button-large media-button-group',
    1517
  • src/wp-includes/js/media/views/button.js

    diff --git src/wp-includes/js/media/views/button.js src/wp-includes/js/media/views/button.js
    index 3442dc4fa5..8f1af79d85 100644
     
    11/**
    22 * wp.media.view.Button
    33 *
     4 * @memberOf wp.media.view
     5 *
    46 * @class
    57 * @augments wp.media.View
    68 * @augments wp.Backbone.View
    79 * @augments Backbone.View
    810 */
    9 var Button = wp.media.View.extend({
     11var Button = wp.media.View.extend(/** @lends wp.media.view.Button.prototype */{
    1012        tagName:    'button',
    1113        className:  'media-button',
    1214        attributes: { type: 'button' },
  • src/wp-includes/js/media/views/button/delete-selected-permanently.js

    diff --git src/wp-includes/js/media/views/button/delete-selected-permanently.js src/wp-includes/js/media/views/button/delete-selected-permanently.js
    index 7c6a5e30bf..a4b55d911f 100644
     
     1var Button = wp.media.view.Button,
     2        DeleteSelected = wp.media.view.DeleteSelectedButton,
     3        DeleteSelectedPermanently;
     4
    15/**
    26 * wp.media.view.DeleteSelectedPermanentlyButton
    37 *
    48 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
    59 *
     10 * @memberOf wp.media.view
     11 *
    612 * @class
    713 * @augments wp.media.view.DeleteSelectedButton
    814 * @augments wp.media.view.Button
     
    1016 * @augments wp.Backbone.View
    1117 * @augments Backbone.View
    1218 */
    13 var Button = wp.media.view.Button,
    14         DeleteSelected = wp.media.view.DeleteSelectedButton,
    15         DeleteSelectedPermanently;
    16 
    17 DeleteSelectedPermanently = DeleteSelected.extend({
     19DeleteSelectedPermanently = DeleteSelected.extend(/** @lends wp.media.view.DeleteSelectedPermanentlyButton.prototype */{
    1820        initialize: function() {
    1921                DeleteSelected.prototype.initialize.apply( this, arguments );
    2022                this.controller.on( 'select:activate', this.selectActivate, this );
  • src/wp-includes/js/media/views/button/delete-selected.js

    diff --git src/wp-includes/js/media/views/button/delete-selected.js src/wp-includes/js/media/views/button/delete-selected.js
    index c9ee1b0261..7c58ac2b77 100644
     
     1var Button = wp.media.view.Button,
     2        l10n = wp.media.view.l10n,
     3        DeleteSelected;
     4
    15/**
    26 * wp.media.view.DeleteSelectedButton
    37 *
    48 * A button that handles bulk Delete/Trash logic
    59 *
     10 * @memberOf wp.media.view
     11 *
    612 * @class
    713 * @augments wp.media.view.Button
    814 * @augments wp.media.View
    915 * @augments wp.Backbone.View
    1016 * @augments Backbone.View
    1117 */
    12 var Button = wp.media.view.Button,
    13         l10n = wp.media.view.l10n,
    14         DeleteSelected;
    15 
    16 DeleteSelected = Button.extend({
     18DeleteSelected = Button.extend(/** @lends wp.media.view.DeleteSelectedButton.prototype */{
    1719        initialize: function() {
    1820                Button.prototype.initialize.apply( this, arguments );
    1921                if ( this.options.filters ) {
  • src/wp-includes/js/media/views/button/select-mode-toggle.js

    diff --git src/wp-includes/js/media/views/button/select-mode-toggle.js src/wp-includes/js/media/views/button/select-mode-toggle.js
    index 820e5ded48..3e3d6d76ca 100644
     
     1
     2var Button = wp.media.view.Button,
     3        l10n = wp.media.view.l10n,
     4        SelectModeToggle;
     5
    16/**
    27 * wp.media.view.SelectModeToggleButton
    38 *
     9 * @memberOf wp.media.view
     10 *
    411 * @class
    512 * @augments wp.media.view.Button
    613 * @augments wp.media.View
    714 * @augments wp.Backbone.View
    815 * @augments Backbone.View
    916 */
    10 var Button = wp.media.view.Button,
    11         l10n = wp.media.view.l10n,
    12         SelectModeToggle;
    13 
    14 SelectModeToggle = Button.extend({
     17SelectModeToggle = Button.extend(/** @lends wp.media.view.SelectModeToggle.prototype */{
    1518        initialize: function() {
    1619                _.defaults( this.options, {
    1720                        size : ''
  • src/wp-includes/js/media/views/cropper.js

    diff --git src/wp-includes/js/media/views/cropper.js src/wp-includes/js/media/views/cropper.js
    index 9eb75c3f53..90012552d4 100644
     
     1var View = wp.media.View,
     2        UploaderStatus = wp.media.view.UploaderStatus,
     3        l10n = wp.media.view.l10n,
     4        $ = jQuery,
     5        Cropper;
     6
    17/**
    28 * wp.media.view.Cropper
    39 *
     
    713 * wp.customize.HeaderControl.calculateImageSelectOptions via
    814 * wp.customize.HeaderControl.openMM.
    915 *
     16 * @memberOf wp.media.view
     17 *
    1018 * @class
    1119 * @augments wp.media.View
    1220 * @augments wp.Backbone.View
    1321 * @augments Backbone.View
    1422 */
    15 var View = wp.media.View,
    16         UploaderStatus = wp.media.view.UploaderStatus,
    17         l10n = wp.media.view.l10n,
    18         $ = jQuery,
    19         Cropper;
    20 
    21 Cropper = View.extend({
     23Cropper = View.extend(/** @lends wp.media.view.Cropper.prototype */{
    2224        className: 'crop-content',
    2325        template: wp.template('crop-content'),
    2426        initialize: function() {
  • src/wp-includes/js/media/views/edit-image-details.js

    diff --git src/wp-includes/js/media/views/edit-image-details.js src/wp-includes/js/media/views/edit-image-details.js
    index 3ef87a5496..ee7490313a 100644
     
     1var View = wp.media.View,
     2        EditImage = wp.media.view.EditImage,
     3        Details;
     4
    15/**
    26 * wp.media.view.EditImage.Details
    37 *
     8 * @memberOf wp.media.view.EditImage
     9 *
    410 * @class
    511 * @augments wp.media.view.EditImage
    612 * @augments wp.media.View
    713 * @augments wp.Backbone.View
    814 * @augments Backbone.View
    915 */
    10 var View = wp.media.View,
    11         EditImage = wp.media.view.EditImage,
    12         Details;
    13 
    14 Details = EditImage.extend({
     16Details = EditImage.extend(/** @lends wp.media.view.EditImage.Details.prototype */{
    1517        initialize: function( options ) {
    1618                this.editor = window.imageEdit;
    1719                this.frame = options.frame;
  • src/wp-includes/js/media/views/edit-image.js

    diff --git src/wp-includes/js/media/views/edit-image.js src/wp-includes/js/media/views/edit-image.js
    index 5254901f6b..bc8fec7dfb 100644
     
     1var View = wp.media.View,
     2        EditImage;
     3
    14/**
    25 * wp.media.view.EditImage
    36 *
     7 * @memberOf wp.media.view
     8 *
    49 * @class
    510 * @augments wp.media.View
    611 * @augments wp.Backbone.View
    712 * @augments Backbone.View
    813 */
    9 var View = wp.media.View,
    10         EditImage;
    11 
    12 EditImage = View.extend({
     14EditImage = View.extend(/** @lends wp.media.view.EditImage.prototype */{
    1315        className: 'image-editor',
    1416        template: wp.template('image-editor'),
    1517
  • src/wp-includes/js/media/views/embed.js

    diff --git src/wp-includes/js/media/views/embed.js src/wp-includes/js/media/views/embed.js
    index ad51fc6b91..d7b38161a5 100644
     
    11/**
    22 * wp.media.view.Embed
    33 *
     4 * @memberOf wp.media.view
     5 *
    46 * @class
    57 * @augments wp.media.View
    68 * @augments wp.Backbone.View
    79 * @augments Backbone.View
    810 */
    9 var Embed = wp.media.View.extend({
     11var Embed = wp.media.View.extend(/** @lends wp.media.view.Ember.prototype */{
    1012        className: 'media-embed',
    1113
    1214        initialize: function() {
  • src/wp-includes/js/media/views/embed/image.js

    diff --git src/wp-includes/js/media/views/embed/image.js src/wp-includes/js/media/views/embed/image.js
    index 7aff956736..8d8241b803 100644
     
     1var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     2        EmbedImage;
     3
    14/**
    25 * wp.media.view.EmbedImage
    36 *
     7 * @memberOf wp.media.view
     8 *
    49 * @class
    510 * @augments wp.media.view.Settings.AttachmentDisplay
    611 * @augments wp.media.view.Settings
     
    813 * @augments wp.Backbone.View
    914 * @augments Backbone.View
    1015 */
    11 var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
    12         EmbedImage;
    13 
    14 EmbedImage = AttachmentDisplay.extend({
     16EmbedImage = AttachmentDisplay.extend(/** @lends wp.media.view.EmbedImage.prototype */{
    1517        className: 'embed-media-settings',
    1618        template:  wp.template('embed-image-settings'),
    1719