Make WordPress Core

Changeset 41351


Ignore:
Timestamp:
09/08/2017 06:41:20 PM (7 years ago)
Author:
adamsilverstein
Message:

Docs: JSDoc improvements for namespaces.

Improve JS parsing of our inline JSDocs by introducing @namespace, @lends and @memberOf. Helps set the way for showing our JavaScript documentation on developer.wordpress.org, see https://meta.trac.wordpress.org/ticket/3063.

  • Define all used namespaces using @namespace.
  • Correctly specify in which namespace each class is using @memberOf.
  • Define each usage of the extend function as a prototype assignment using @lends.
  • Some comment blocks were moved to correct the parsing of certain definitions.

Props herregroen, atimmer, netweb, SergeyBiryukov.  
Fixes #41682.

Location:
trunk
Files:
126 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r41277 r41351  
    436436            }
    437437        },
     438        jsdoc : {
     439            dist : {
     440                dest: 'jsdoc',
     441                options: {
     442                    configure : 'jsdoc.conf.json'
     443                }
     444            }
     445        },
    438446        qunit: {
    439447            files: [
  • trunk/package.json

    r41271 r41351  
    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",
     
    3536    "grunt-rtlcss": "~2.0.1",
    3637    "grunt-sass": "~1.2.1",
     38    "ink-docstrap": "^1.3.0",
    3739    "matchdep": "~1.0.0"
    3840  }
  • trunk/src/wp-includes/js/api-request.js

    r41207 r41351  
    99 * - Allows specifying only an endpoint namespace/path instead of a full URL.
    1010 *
    11  * @namespace wp.apiRequest
    1211 * @since     4.9.0
    1312 */
     
    8382    apiRequest.transport = $.ajax;
    8483
     84    /** @namespace wp */
    8585    window.wp = window.wp || {};
    8686    window.wp.apiRequest = apiRequest;
  • trunk/src/wp-includes/js/autosave.js

    r41265 r41351  
    851851    }
    852852
     853    /** @namespace wp */
    853854    window.wp = window.wp || {};
    854855    window.wp.autosave = autosave();
  • trunk/src/wp-includes/js/customize-base.js

    r40381 r41351  
     1/** @namespace wp */
    12window.wp = window.wp || {};
    23
     
    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.
     
    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        /**
     
    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,
     
    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.
     
    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.
     
    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;
     
    799815     * Get all customize settings.
    800816     *
     817     * @memberOf wp.customize
     818     *
    801819     * @return {object}
    802820     */
     
    813831    /**
    814832     * Utility function namespace
     833     *
     834     * @namespace wp.customize.utils
    815835     */
    816836    api.utils = {};
     
    821841     * @since 4.7.0
    822842     * @access public
     843     * @memberOf wp.customize.utils
    823844     *
    824845     * @param {string} queryString Query string.
     
    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 );
  • trunk/src/wp-includes/js/customize-loader.js

    r38810 r41351  
    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 || {};
     
    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.
  • trunk/src/wp-includes/js/customize-models.js

    r33324 r41351  
    22(function( $, wp ) {
    33    var api = wp.customize;
     4    /** @namespace wp.customize.HeaderTool */
    45    api.HeaderTool = {};
    56
     
    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 {
     
    126130     * wp.customize.HeaderTool.ChoiceList
    127131     *
     132     * @memberOf wp.customize.HeaderTool
     133     * @alias wp.customize.HeaderTool.ChoiceList
     134     *
    128135     * @constructor
    129136     * @augments Backbone.Collection
     
    232239    /**
    233240     * wp.customize.HeaderTool.DefaultsList
     241     *
     242     * @memberOf wp.customize.HeaderTool
     243     * @alias wp.customize.HeaderTool.DefaultsList
    234244     *
    235245     * @constructor
  • trunk/src/wp-includes/js/customize-preview-nav-menus.js

    r39562 r41351  
    11/* global _wpCustomizePreviewNavMenusExports */
     2
     3/** @namespace wp.customize.navMenusPreview */
    24wp.customize.navMenusPreview = wp.customize.MenusCustomizerPreview = ( function( $, _, wp, api ) {
    35    'use strict';
     
    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            /**
  • trunk/src/wp-includes/js/customize-preview-widgets.js

    r38967 r41351  
    11/* global _wpWidgetCustomizerPreviewSettings */
     2
     3/** @namespace wp.customize.widgetsPreview */
    24wp.customize.widgetsPreview = wp.customize.WidgetCustomizerPreview = (function( $, _, wp, api ) {
    35
     
    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        /**
     
    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        /**
     
    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     */
     
    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.
     
    568580     * focus the widget control.
    569581     *
     582     * @memberOf wp.customize.widgetsPreview
     583     *
    570584     * @since 3.9.0
    571585     */
     
    598612    /**
    599613     * Parse a widget ID.
     614     *
     615     * @memberOf wp.customize.widgetsPreview
    600616     *
    601617     * @since 4.5.0
     
    624640     * Parse a widget setting ID.
    625641     *
     642     * @memberOf wp.customize.widgetsPreview
     643     *
    626644     * @since 4.5.0
    627645     *
     
    649667     * Convert a widget ID into a Customizer setting ID.
    650668     *
     669     * @memberOf wp.customize.widgetsPreview
     670     *
    651671     * @since 4.5.0
    652672     *
  • trunk/src/wp-includes/js/customize-preview.js

    r41338 r41351  
    8888
    8989    /**
     90     * @memberOf wp.customize
     91     * @alias wp.customize.Preview
     92     *
    9093     * @constructor
    9194     * @augments wp.customize.Messenger
     
    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.
  • trunk/src/wp-includes/js/customize-selective-refresh.js

    r40771 r41351  
    11/* global jQuery, JSON, _customizePartialRefreshExports, console */
    22
     3/** @namespace wp.customize.selectiveRefresh */
    34wp.customize.selectiveRefresh = ( function( $, api ) {
    45    'use strict';
     
    2425     *
    2526     * A partial provides a rendering of one or more settings according to a template.
     27     *
     28     * @memberOf wp.customize.selectiveRefresh
    2629     *
    2730     * @see PHP class WP_Customize_Partial.
     
    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,
     
    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        /**
  • trunk/src/wp-includes/js/customize-views.js

    r40082 r41351  
    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
     
    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
     
    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);
     
    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;
  • trunk/src/wp-includes/js/heartbeat.js

    r39051 r41351  
    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();
  • trunk/src/wp-includes/js/mce-view.js

    r40481 r41351  
    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        /**
  • trunk/src/wp-includes/js/media-audiovideo.js

    r41330 r41351  
    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
     290 *
     291 * @memberOf wp.media.controller
    286292 *
    287293 * @class
     
    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',
     
    318320 * The controller for the Video Details state
    319321 *
     322 * @memberOf wp.media.controller
     323 *
    320324 * @class
    321325 * @augments wp.media.controller.State
     
    326330    VideoDetails;
    327331
    328 VideoDetails = State.extend({
     332VideoDetails = State.extend(/** @lends wp.media.controller.VideoDetails.prototype */{
    329333    defaults: {
    330334        id: 'video-details',
     
    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;
     
    388394
    389395},{}],5:[function(require,module,exports){
     396var MediaDetails = wp.media.view.MediaDetails,
     397    AudioDetails;
     398
    390399/**
    391400 * wp.media.view.AudioDetails
     401 *
     402 * @memberOf wp.media.view
    392403 *
    393404 * @class
     
    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'),
     
    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
     444 *
     445 * @memberOf wp.media.view.MediaFrame
    430446 *
    431447 * @class
     
    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',
     
    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
     520 *
     521 * @memberOf wp.media.view.MediaFrame
    506522 *
    507523 * @class
     
    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',
     
    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
     653 *
     654 * @memberOf wp.media.view.MediaFrame
    636655 *
    637656 * @class
     
    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',
     
    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
     790 *
     791 * @memberOf wp.media.view
    773792 *
    774793 * @class
     
    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');
     
    855870    },
    856871
    857     /**
    858      * @global MediaElementPlayer
    859      */
    860872    setPlayer : function() {
    861873        var src;
     
    913925        this.$( '.embed-media-settings' ).scrollTop( 0 );
    914926    }
    915 }, {
     927},/** @lends wp.media.view.MediaDetails */{
    916928    instances : 0,
    917929    /**
     
    939951
    940952},{}],10:[function(require,module,exports){
     953var MediaDetails = wp.media.view.MediaDetails,
     954    VideoDetails;
     955
    941956/**
    942957 * wp.media.view.VideoDetails
     958 *
     959 * @memberOf wp.media.view
    943960 *
    944961 * @class
     
    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'),
  • trunk/src/wp-includes/js/media-editor.js

    r38812 r41351  
    3131    };
    3232
    33     /**
    34      * wp.media.string
    35      * @namespace
    36      */
     33    /** @namespace wp.media.string */
    3734    wp.media.string = {
    3835        /**
     
    4037         * outputting the proper object format based on the
    4138         * attachment's type.
    42          *
    43          * @global wp.media.view.settings
    44          * @global getUserSetting()
    4539         *
    4640         * @param {Object} [props={}] Attachment details (align, link, size, etc).
     
    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.
     
    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).
     
    210199         * Create image markup, optionally with a link and/or wrapped in a caption shortcode,
    211200         *  that is suitable for passing to the editor
    212          *
    213          * @global wp.html
    214          * @global wp.shortcode
    215201         *
    216202         * @param {Object} props Attachment details (align, link, size, etc).
     
    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
    351              *
    352              * @global wp.media.query
    353342             *
    354343             * @param {wp.shortcode} shortcode An instance of wp.shortcode().
     
    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.
     
    488474             * Triggered when double-clicking a collection shortcode placeholder
    489475             *   in the editor
    490              *
    491              * @global wp.shortcode
    492              * @global wp.media.model.Selection
    493              * @global wp.media.view.l10n
    494476             *
    495477             * @param {string} content Content that is searched for possible
     
    611593
    612594    /**
    613      * wp.media.featuredImage
    614      * @namespace
     595     * @namespace wp.media.featuredImage
     596     * @memberOf wp.media
    615597     */
    616598    wp.media.featuredImage = {
     
    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         */
     
    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.
    630          *
    631          * @global wp.media.view.settings
    632          * @global wp.media.post
    633610         *
    634611         * @param {number} id The post ID of the featured image, or -1 to unset it.
     
    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         *
     
    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         */
     
    724696         *
    725697         * Update the featured image id when the 'remove' link is clicked.
    726          *
    727          * @global wp.media.view.settings
    728698         */
    729699        init: function() {
     
    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
    752          *
    753          * @global tinymce
    754          * @global QTags
    755          * @global wpActiveEditor
    756          * @global tb_remove() - Possibly overloaded by legacy plugins
    757719         *
    758720         * @param {string} html Content to send to the editor
     
    805767         * Setup 'workflow' and add to the 'workflows' cache. 'open' can
    806768         *  subsequently be called upon it.
    807          *
    808          * @global wp.media.view.l10n
    809769         *
    810770         * @param {string} id A slug used to identify the workflow.
     
    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         *
     
    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.
    972              *
    973              * @global wp.media.view.settings
    974              * @global wp.media.post
    975927             *
    976928             * @param {Object} props Attachment details (align, link, size, etc).
     
    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}
     
    10761026        /**
    10771027         * Bind click event for .insert-media using event delegation
    1078          *
    1079          * @global wp.media.view.l10n
    10801028         */
    10811029        init: function() {
  • trunk/src/wp-includes/js/media-grid.js

    r41021 r41351  
    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.
     9 *
     10 * @memberOf wp.media.controller
    611 *
    712 * @class
     
    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',
     
    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',
     
    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
     
    113120 * A similar view to media.view.Attachment.Details
    114121 * for use in the Edit Attachment modal.
     122 *
     123 * @memberOf wp.media.view.Attachment.Details
    115124 *
    116125 * @class
     
    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
     
    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
     175 *
     176 * @memberOf wp.media.view
    165177 *
    166178 * @class
     
    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 );
     
    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
     224 *
     225 * @memberOf wp.media.view
    212226 *
    213227 * @class
     
    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 );
     
    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
     278 *
     279 * @memberOf wp.media.view
    263280 *
    264281 * @class
     
    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, {
     
    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
     354 *
     355 * @memberOf wp.media.view.EditImage
    337356 *
    338357 * @class
     
    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;
     
    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
     
    376397 *
    377398 * Requires an attachment model to be passed in the options hash under `model`.
     399 *
     400 * @memberOf wp.media.view.MediaFrame
    378401 *
    379402 * @class
     
    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',
     
    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
     
    634657 *
    635658 * Used in the media grid view.
     659 *
     660 * @memberOf wp.media.view.MediaFrame
    636661 *
    637662 * @class
     
    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({
    652     /**
    653      * @global wp.Uploader
     670Manage = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.Manage.prototype */{
     671    /**
     672     * @constructs
    654673     */
    655674    initialize: function() {
  • trunk/src/wp-includes/js/media-models.js

    r39051 r41351  
    33    Attachment, Attachments, l10n, media;
    44
     5/** @namespace wp */
    56window.wp = window.wp || {};
    67
     
    910 *
    1011 * Handles the default media experience.
     12 *
     13 * @alias wp.media
     14 * @memberOf wp
    1115 *
    1216 * @param  {object} attributes The properties passed to the main media controller.
     
    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
     
    91100};
    92101
    93 _.extend( media, {
     102_.extend( media, /** @lends wp.media */{
    94103    /**
    95104     * media.template( id )
     
    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
     247 *
     248 * @memberOf wp.media.model
    235249 *
    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
     
    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}
     
    407419 * 'options.props.query = true', which will mirror the collection
    408420 * to an Attachments Query collection - @see wp.media.model.Attachments.mirror().
     421 *
     422 * @memberOf wp.media.model
    409423 *
    410424 * @class
     
    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}
     
    819833        });
    820834    }
    821 }, {
     835},/** @lends wp.media.model.Attachments */{
    822836    /**
    823837     * A function to compare two attachment models in an attachments collection.
     
    825839     * Used as the default comparator for instances of wp.media.model.Attachments
    826840     * and its subclasses. @see wp.media.model.Attachments._changeOrderby().
    827      *
    828      * @static
    829841     *
    830842     * @param {Backbone.Model} a
     
    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        /**
     
    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
     
    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 ) {
     
    11001112
    11011113},{}],5:[function(require,module,exports){
     1114var Attachments = wp.media.model.Attachments,
     1115    Query;
     1116
    11021117/**
    11031118 * wp.media.model.Query
     
    11071122 * Note: Do NOT change this.args after the query has been initialized.
    11081123 *       Things will break.
     1124 *
     1125 * @memberOf wp.media.model
    11091126 *
    11101127 * @class
     
    11171134 * @param {object} [options.args.posts_per_page]
    11181135 */
    1119 var Attachments = wp.media.model.Attachments,
    1120     Query;
    1121 
    1122 Query = Attachments.extend({
    1123     /**
    1124      * @global wp.Uploader
    1125      *
     1136Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
     1137    /**
    11261138     * @param {array}  [models=[]]  Array of initial models to populate the collection.
    11271139     * @param {object} [options={}]
     
    12551267        }
    12561268    }
    1257 }, {
     1269}, /** @lends wp.media.model.Query */{
    12581270    /**
    12591271     * @readonly
     
    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.
     1429 *
     1430 * @memberOf wp.media.model
    14141431 *
    14151432 * @class
     
    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.
  • trunk/src/wp-includes/js/media-views.js

    r41206 r41351  
    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).
     10 *
     11 * @memberOf wp.media.controller
    612 *
    713 * @class
     
    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
     
    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
     
    106113 * A state for editing a collection, which is used by audio and video playlists,
    107114 * and can be used for other collections.
     115 *
     116 * @memberOf wp.media.controller
    108117 *
    109118 * @class
     
    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,
     
    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.
     276 *
     277 * @memberOf wp.media.controller
    269278 *
    270279 * @class
     
    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',
     
    385391
    386392},{}],4:[function(require,module,exports){
     393var Controller = wp.media.controller,
     394    CustomizeImageCropper;
     395
    387396/**
    388397 * wp.media.controller.CustomizeImageCropper
     398 *
     399 * @memberOf wp.media.controller
    389400 *
    390401 * A state for cropping an image.
     
    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' ),
     
    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.
     445 *
     446 * @memberOf wp.media.controller
    434447 *
    435448 * @class
     
    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',
     
    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.
     524 *
     525 * @memberOf wp.media.controller
    510526 *
    511527 * @class
     
    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',
     
    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.
     663 *
     664 * @memberOf wp.media.controller
    646665 *
    647666 * @class
     
    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',
     
    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.
     787 *
     788 * @memberOf wp.media.controller
    768789 *
    769790 * @class
     
    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',
     
    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.
     879 *
     880 * @memberOf wp.media.controller
    859881 *
    860882 * @class
     
    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',
     
    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
     
    10001023 * A state for editing the attachment display settings of an image that's been
    10011024 * inserted into the editor.
     1025 *
     1026 * @memberOf wp.media.controller
    10021027 *
    10031028 * @class
     
    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',
     
    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.
     1088 *
     1089 * @memberOf wp.media.controller
    10631090 *
    10641091 * @class
     
    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',
     
    13531375 * wp.media.controller.MediaLibrary
    13541376 *
     1377 * @memberOf wp.media.controller
     1378 *
    13551379 * @class
    13561380 * @augments 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
     
    14121436 * 'browse' mode t be activated on the 'content' view and then fills the region
    14131437 * with an AttachmentsBrowser view.
     1438 *
     1439 * @memberOf wp.media.controller
    14141440 *
    14151441 * @class
     
    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.
     
    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.
     
    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');
     
    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');
     
    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
     
    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 );
     
    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 );
     
    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.
     1610 *
     1611 * @memberOf wp.media.controller
    15851612 *
    15861613 * @class
     
    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',
     
    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.
     1719 *
     1720 * @memberOf wp.media.controller
    16931721 *
    16941722 * @class
     
    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 );
     
    17441769 * States are stored as models in a Backbone collection.
    17451770 *
     1771 * @memberOf wp.media.controller
     1772 *
    17461773 * @since 3.5.0
    17471774 *
     
    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.
     
    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     */
     
    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.
     
    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.
     2154 *
     2155 * @memberOf wp.media
    21102156 *
    21112157 * @mixin
     
    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.
     2373 *
     2374 * @memberOf wp.media.view
    23242375 *
    23252376 * @class
     
    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',
     
    24032451
    24042452},{}],21:[function(require,module,exports){
     2453var $ = jQuery,
     2454    AttachmentFilters;
     2455
    24052456/**
    24062457 * wp.media.view.AttachmentFilters
     2458 *
     2459 * @memberOf wp.media.view
    24072460 *
    24082461 * @class
     
    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',
     
    24802530
    24812531},{}],22:[function(require,module,exports){
     2532var l10n = wp.media.view.l10n,
     2533    All;
     2534
    24822535/**
    24832536 * wp.media.view.AttachmentFilters.All
     2537 *
     2538 * @memberOf wp.media.view.AttachmentFilters
    24842539 *
    24852540 * @class
     
    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 = {};
     
    25702622
    25712623},{}],23:[function(require,module,exports){
     2624var l10n = wp.media.view.l10n,
     2625    DateFilter;
     2626
    25722627/**
    25732628 * A filter dropdown for month/dates.
     2629 *
     2630 * @memberOf wp.media.view.AttachmentFilters
    25742631 *
    25752632 * @class
     
    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
     
    26112665
    26122666},{}],24:[function(require,module,exports){
     2667var l10n = wp.media.view.l10n,
     2668    Uploaded;
     2669
    26132670/**
    26142671 * wp.media.view.AttachmentFilters.Uploaded
     2672 *
     2673 * @memberOf wp.media.view.AttachmentFilters
    26152674 *
    26162675 * @class
     
    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'),
     
    26702726
    26712727},{}],25:[function(require,module,exports){
     2728var View = wp.media.View,
     2729    $ = jQuery,
     2730    Attachment;
     2731
    26722732/**
    26732733 * wp.media.view.Attachment
     2734 *
     2735 * @memberOf wp.media.view
    26742736 *
    26752737 * @class
     
    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',
     
    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
     
    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
     3313 *
     3314 * @memberOf wp.media.view.Attachment
    32203315 *
    32213316 * @class
     
    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',
     
    33573448 * wp.media.view.Attachment.EditLibrary
    33583449 *
     3450 * @memberOf wp.media.view.Attachment
     3451 *
    33593452 * @class
    33603453 * @augments wp.media.view.Attachment
     
    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
     
    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
     
    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
     
    33933488/**
    33943489 * wp.media.view.Attachment.Library
     3490 *
     3491 * @memberOf wp.media.view.Attachment
    33953492 *
    33963493 * @class
     
    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
     
    34113508/**
    34123509 * wp.media.view.Attachment.Selection
     3510 *
     3511 * @memberOf wp.media.view.Attachment
    34133512 *
    34143513 * @class
     
    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
     
    34313530
    34323531},{}],31:[function(require,module,exports){
     3532var View = wp.media.View,
     3533    $ = jQuery,
     3534    Attachments;
     3535
    34333536/**
    34343537 * wp.media.view.Attachments
     3538 *
     3539 * @memberOf wp.media.view
    34353540 *
    34363541 * @class
     
    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',
     
    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
     3841 *
     3842 * @memberOf wp.media.view
    37343843 *
    37353844 * @class
     
    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',
     
    42064309
    42074310},{}],33:[function(require,module,exports){
     4311var Attachments = wp.media.view.Attachments,
     4312    Selection;
     4313
    42084314/**
    42094315 * wp.media.view.Attachments.Selection
     4316 *
     4317 * @memberOf wp.media.view.Attachments
    42104318 *
    42114319 * @class
     
    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() {
     
    42364341
    42374342},{}],34:[function(require,module,exports){
     4343var $ = Backbone.$,
     4344    ButtonGroup;
     4345
    42384346/**
    42394347 * wp.media.view.ButtonGroup
     4348 *
     4349 * @memberOf wp.media.view
    42404350 *
    42414351 * @class
     
    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',
     
    42854392 * wp.media.view.Button
    42864393 *
     4394 * @memberOf wp.media.view
     4395 *
    42874396 * @class
    42884397 * @augments wp.media.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',
     
    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
     
    43764491 * wp.customize.HeaderControl.calculateImageSelectOptions via
    43774492 * wp.customize.HeaderControl.openMM.
     4493 *
     4494 * @memberOf wp.media.view
    43784495 *
    43794496 * @class
     
    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'),
     
    44354546
    44364547},{}],37:[function(require,module,exports){
     4548var View = wp.media.View,
     4549    EditImage;
     4550
    44374551/**
    44384552 * wp.media.view.EditImage
     4553 *
     4554 * @memberOf wp.media.view
    44394555 *
    44404556 * @class
     
    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'),
     
    44934606/**
    44944607 * wp.media.view.Embed
     4608 *
     4609 * @memberOf wp.media.view
    44954610 *
    44964611 * @class
     
    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
     
    45554670
    45564671},{}],39:[function(require,module,exports){
     4672var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     4673    EmbedImage;
     4674
    45574675/**
    45584676 * wp.media.view.EmbedImage
     4677 *
     4678 * @memberOf wp.media.view
    45594679 *
    45604680 * @class
     
    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'),
     
    45884705
    45894706},{}],40:[function(require,module,exports){
     4707var $ = jQuery,
     4708    EmbedLink;
     4709
    45904710/**
    45914711 * wp.media.view.EmbedLink
     4712 *
     4713 * @memberOf wp.media.view
    45924714 *
    45934715 * @class
     
    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'),
     
    46854804
    46864805},{}],41:[function(require,module,exports){
     4806var View = wp.media.View,
     4807    $ = jQuery,
     4808    EmbedUrl;
     4809
    46874810/**
    46884811 * wp.media.view.EmbedUrl
     4812 *
     4813 * @memberOf wp.media.view
    46894814 *
    46904815 * @class
     
    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',
     
    47674888 * wp.media.view.FocusManager
    47684889 *
     4890 * @memberOf wp.media.view
     4891 *
    47694892 * @class
    47704893 * @augments wp.media.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: {
     
    48164939 * states.
    48174940 *
     4941 * @memberOf wp.media.view
     4942 *
    48184943 * @see wp.media.controller.State
    48194944 * @see wp.media.controller.Region
     
    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, {
     
    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' );
     
    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
     
    49815110 * A media frame for manipulating an image that's already been inserted
    49825111 * into a post.
     5112 *
     5113 * @memberOf wp.media.view.MediaFrame
    49835114 *
    49845115 * @class
     
    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',
     
    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.
     5292 *
     5293 * @memberOf wp.media.view.MediaFrame
    51605294 *
    51615295 * @class
     
    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 = {
     
    55995728
    56005729            /**
     5730             * @callback
    56015731             * @fires wp.media.controller.State#insert
    56025732             */
     
    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.
     6029 *
     6030 * @memberOf wp.media.view.MediaFrame
    58956031 *
    58966032 * @class
     
    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.
     
    60636194 * wp.media.view.Iframe
    60646195 *
     6196 * @memberOf wp.media.view
     6197 *
    60656198 * @class
    60666199 * @augments wp.media.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    /**
     
    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
     6225 *
     6226 * @memberOf wp.media.view
    60886227 *
    60896228 * @class
     
    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'),
     
    62556390 * wp.media.view.Label
    62566391 *
     6392 * @memberOf wp.media.view
     6393 *
    62576394 * @class
    62586395 * @augments wp.media.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',
     
    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.
     6425 *
     6426 * @memberOf wp.media.view
    62846427 *
    62856428 * @class
     
    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'),
     
    63046443
    63056444    /**
    6306      * @global wp.Uploader
     6445     * @constructs
    63076446     */
    63086447    initialize: function() {
     
    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     */
     
    65256696
    65266697},{}],51:[function(require,module,exports){
     6698var $ = jQuery,
     6699    MenuItem;
     6700
    65276701/**
    65286702 * wp.media.view.MenuItem
     6703 *
     6704 * @memberOf wp.media.view
    65296705 *
    65306706 * @class
     
    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',
     
    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
     6778 *
     6779 * @memberOf wp.media.view
    66016780 *
    66026781 * @class
     
    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',
     
    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.
     6898 *
     6899 * @memberOf wp.media.view
    67206900 *
    67216901 * @class
     
    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'),
     
    69387115 * wp.media.view.PriorityList
    69397116 *
     7117 * @memberOf wp.media.view
     7118 *
    69407119 * @class
    69417120 * @augments wp.media.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
     
    70357214 * wp.media.view.RouterItem
    70367215 *
     7216 * @memberOf wp.media.view
     7217 *
    70377218 * @class
    70387219 * @augments wp.media.view.MenuItem
     
    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.
     
    70567237
    70577238},{}],56:[function(require,module,exports){
     7239var Menu = wp.media.view.Menu,
     7240    Router;
     7241
    70587242/**
    70597243 * wp.media.view.Router
     7244 *
     7245 * @memberOf wp.media.view
    70607246 *
    70617247 * @class
     
    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',
     
    70937276
    70947277},{}],57:[function(require,module,exports){
     7278var l10n = wp.media.view.l10n,
     7279    Search;
     7280
    70957281/**
    70967282 * wp.media.view.Search
     7283 *
     7284 * @memberOf wp.media.view
    70977285 *
    70987286 * @class
     
    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',
     
    71397324
    71407325},{}],58:[function(require,module,exports){
     7326var l10n = wp.media.view.l10n,
     7327    Selection;
     7328
    71417329/**
    71427330 * wp.media.view.Selection
     7331 *
     7332 * @memberOf wp.media.view
    71437333 *
    71447334 * @class
     
    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',
     
    72227409
    72237410},{}],59:[function(require,module,exports){
     7411var View = wp.media.View,
     7412    $ = Backbone.$,
     7413    Settings;
     7414
    72247415/**
    72257416 * wp.media.view.Settings
     7417 *
     7418 * @memberOf wp.media.view
    72267419 *
    72277420 * @class
     
    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',
     
    73437532
    73447533},{}],60:[function(require,module,exports){
     7534var Settings = wp.media.view.Settings,
     7535    AttachmentDisplay;
     7536
    73457537/**
    73467538 * wp.media.view.Settings.AttachmentDisplay
     7539 *
     7540 * @memberOf wp.media.view.Settings
    73477541 *
    73487542 * @class
     
    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'),
     
    74407631 * wp.media.view.Settings.Gallery
    74417632 *
     7633 * @memberOf wp.media.view.Settings
     7634 *
    74427635 * @class
    74437636 * @augments wp.media.view.Settings
     
    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')
     
    74567649/**
    74577650 * wp.media.view.Settings.Playlist
     7651 *
     7652 * @memberOf wp.media.view.Settings
    74587653 *
    74597654 * @class
     
    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')
     
    74737668/**
    74747669 * wp.media.view.Sidebar
     7670 *
     7671 * @memberOf wp.media.view
    74757672 *
    74767673 * @class
     
    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});
     
    74877684
    74887685},{}],64:[function(require,module,exports){
     7686var View = wp.media.view,
     7687    SiteIconCropper;
     7688
    74897689/**
    74907690 * wp.media.view.SiteIconCropper
     
    74947694 * Takes imgAreaSelect options from
    74957695 * wp.customize.SiteIconControl.calculateImageSelectOptions.
     7696 *
     7697 * @memberOf wp.media.view
    74967698 *
    74977699 * @class
     
    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
     
    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.
     7739 *
     7740 * @memberOf wp.media.view
    75367741 *
    75377742 * @class
     
    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' ),
     
    75897790 * wp.media.view.Spinner
    75907791 *
     7792 * @memberOf wp.media.view
     7793 *
    75917794 * @class
    75927795 * @augments wp.media.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',
     
    76217824
    76227825},{}],67:[function(require,module,exports){
     7826var View = wp.media.View,
     7827    Toolbar;
     7828
    76237829/**
    76247830 * wp.media.view.Toolbar
     
    76267832 * A toolbar which consists of a primary and a secondary section. Each sections
    76277833 * can be filled with views.
     7834 *
     7835 * @memberOf wp.media.view
    76287836 *
    76297837 * @class
     
    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',
     
    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
     7996 *
     7997 * @memberOf wp.media.view.Toolbar
    77877998 *
    77887999 * @class
     
    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, {
     
    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
     8035 *
     8036 * @memberOf wp.media.view.Toolbar
    78248037 *
    78258038 * @class
     
    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;
     
    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)
     
    78958109 *
    78968110 * wp.media.view.EditorUploader
     8111 *
     8112 * @memberOf wp.media.view
    78978113 *
    78988114 * @class
     
    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',
     
    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.
     8335 *
     8336 * @memberOf wp.media.view
    81218337 *
    81228338 * @class
     
    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',
     
    82588471 * wp.media.view.UploaderStatusError
    82598472 *
     8473 * @memberOf wp.media.view
     8474 *
    82608475 * @class
    82618476 * @augments wp.media.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')
     
    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.
     8495 *
     8496 * @memberOf wp.media.view
    82778497 *
    82788498 * @class
     
    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'),
     
    83048521    },
    83058522    /**
    8306      * @global wp.Uploader
    83078523     * @returns {wp.media.view.UploaderStatus}
    83088524     */
     
    83908606
    83918607    /**
    8392      * @global wp.Uploader
    8393      *
    83948608     * @param {Object} event
    83958609     */
     
    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.
     8632 *
     8633 * @memberOf wp.media.view
    84158634 *
    84168635 * @class
     
    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',
     
    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 ) {
  • trunk/src/wp-includes/js/media/controllers/audio-details.js

    r33337 r41351  
     1var State = wp.media.controller.State,
     2    l10n = wp.media.view.l10n,
     3    AudioDetails;
     4
    15/**
    26 * wp.media.controller.AudioDetails
     
    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',
  • trunk/src/wp-includes/js/media/controllers/collection-add.js

    r33337 r41351  
     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).
     9 *
     10 * @memberOf wp.media.controller
    511 *
    612 * @class
     
    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
  • trunk/src/wp-includes/js/media/controllers/collection-edit.js

    r33337 r41351  
     1var Library = wp.media.controller.Library,
     2    l10n = wp.media.view.l10n,
     3    $ = jQuery,
     4    CollectionEdit;
     5
    16/**
    27 * wp.media.controller.CollectionEdit
     
    49 * A state for editing a collection, which is used by audio and video playlists,
    510 * and can be used for other collections.
     11 *
     12 * @memberOf wp.media.controller
    613 *
    714 * @class
     
    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,
  • trunk/src/wp-includes/js/media/controllers/cropper.js

    r36931 r41351  
     1var l10n = wp.media.view.l10n,
     2    Cropper;
     3
    14/**
    25 * wp.media.controller.Cropper
     
    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',
  • trunk/src/wp-includes/js/media/controllers/customize-image-cropper.js

    r37113 r41351  
     1var Controller = wp.media.controller,
     2    CustomizeImageCropper;
     3
    14/**
    25 * wp.media.controller.CustomizeImageCropper
     6 *
     7 * @memberOf wp.media.controller
    38 *
    49 * A state for cropping an image.
     
    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' ),
  • trunk/src/wp-includes/js/media/controllers/edit-attachment-metadata.js

    r33337 r41351  
     1var l10n = wp.media.view.l10n,
     2    EditAttachmentMetadata;
     3
    14/**
    25 * wp.media.controller.EditAttachmentMetadata
     
    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',
  • trunk/src/wp-includes/js/media/controllers/edit-image.js

    r37678 r41351  
     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.
     8 *
     9 * @memberOf wp.media.controller
    510 *
    611 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/embed.js

    r33337 r41351  
     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.
     9 *
     10 * @memberOf wp.media.controller
    511 *
    612 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/featured-image.js

    r33337 r41351  
     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.
     10 *
     11 * @memberOf wp.media.controller
    512 *
    613 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/gallery-add.js

    r33337 r41351  
     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.
     10 *
     11 * @memberOf wp.media.controller
    512 *
    613 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/gallery-edit.js

    r33337 r41351  
     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.
     9 *
     10 * @memberOf wp.media.controller
    511 *
    612 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/image-details.js

    r33337 r41351  
     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
     
    49 * A state for editing the attachment display settings of an image that's been
    510 * inserted into the editor.
     11 *
     12 * @memberOf wp.media.controller
    613 *
    714 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/library.js

    r36166 r41351  
     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.
     10 *
     11 * @memberOf wp.media.controller
    512 *
    613 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/media-library.js

    r33337 r41351  
    11/**
    22 * wp.media.controller.MediaLibrary
     3 *
     4 * @memberOf wp.media.controller
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/controllers/region.js

    r33337 r41351  
    1111 * 'browse' mode t be activated on the 'content' view and then fills the region
    1212 * with an AttachmentsBrowser view.
     13 *
     14 * @memberOf wp.media.controller
    1315 *
    1416 * @class
     
    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.
     
    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.
     
    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');
     
    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');
     
    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
     
    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 );
     
    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 );
  • trunk/src/wp-includes/js/media/controllers/replace-image.js

    r33337 r41351  
     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.
     9 *
     10 * @memberOf wp.media.controller
    511 *
    612 * @class
     
    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',
  • trunk/src/wp-includes/js/media/controllers/site-icon-cropper.js

    r33337 r41351  
     1var Controller = wp.media.controller,
     2    SiteIconCropper;
     3
    14/**
    25 * wp.media.controller.SiteIconCropper
    36 *
    47 * A state for cropping a Site Icon.
     8 *
     9 * @memberOf wp.media.controller
    510 *
    611 * @class
     
    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 );
  • trunk/src/wp-includes/js/media/controllers/state-machine.js

    r33337 r41351  
    66 *
    77 * States are stored as models in a Backbone collection.
     8 *
     9 * @memberOf wp.media.controller
    810 *
    911 * @since 3.5.0
     
    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.
     
    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     */
  • trunk/src/wp-includes/js/media/controllers/state.js

    r33337 r41351  
    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.
  • trunk/src/wp-includes/js/media/controllers/video-details.js

    r33337 r41351  
    33 *
    44 * The controller for the Video Details state
     5 *
     6 * @memberOf wp.media.controller
    57 *
    68 * @class
     
    1214    VideoDetails;
    1315
    14 VideoDetails = State.extend({
     16VideoDetails = State.extend(/** @lends wp.media.controller.VideoDetails.prototype */{
    1517    defaults: {
    1618        id: 'video-details',
  • trunk/src/wp-includes/js/media/models.manifest.js

    r33337 r41351  
    22    Attachment, Attachments, l10n, media;
    33
     4/** @namespace wp */
    45window.wp = window.wp || {};
    56
     
    89 *
    910 * Handles the default media experience.
     11 *
     12 * @alias wp.media
     13 * @memberOf wp
     14 * @namespace
    1015 *
    1116 * @param  {object} attributes The properties passed to the main media controller.
     
    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
     
    9099};
    91100
    92 _.extend( media, {
     101_.extend( media, /** @lends wp.media */{
    93102    /**
    94103     * media.template( id )
  • trunk/src/wp-includes/js/media/models/attachment.js

    r33337 r41351  
     1var $ = Backbone.$,
     2    Attachment;
     3
    14/**
    25 * wp.media.model.Attachment
     6 *
     7 * @memberOf wp.media.model
    38 *
    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
     
    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}
  • trunk/src/wp-includes/js/media/models/attachments.js

    r39051 r41351  
    77 * 'options.props.query = true', which will mirror the collection
    88 * to an Attachments Query collection - @see wp.media.model.Attachments.mirror().
     9 *
     10 * @memberOf wp.media.model
    911 *
    1012 * @class
     
    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}
     
    419421        });
    420422    }
    421 }, {
     423},/** @lends wp.media.model.Attachments */{
    422424    /**
    423425     * A function to compare two attachment models in an attachments collection.
     
    425427     * Used as the default comparator for instances of wp.media.model.Attachments
    426428     * and its subclasses. @see wp.media.model.Attachments._changeOrderby().
    427      *
    428      * @static
    429429     *
    430430     * @param {Backbone.Model} a
     
    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        /**
  • trunk/src/wp-includes/js/media/models/post-image.js

    r33337 r41351  
    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
     
    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 ) {
  • trunk/src/wp-includes/js/media/models/post-media.js

    r33337 r41351  
    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;
  • trunk/src/wp-includes/js/media/models/query.js

    r33337 r41351  
     1var Attachments = wp.media.model.Attachments,
     2    Query;
     3
    14/**
    25 * wp.media.model.Query
     
    69 * Note: Do NOT change this.args after the query has been initialized.
    710 *       Things will break.
     11 *
     12 * @memberOf wp.media.model
    813 *
    914 * @class
     
    1621 * @param {object} [options.args.posts_per_page]
    1722 */
    18 var Attachments = wp.media.model.Attachments,
    19     Query;
    20 
    21 Query = Attachments.extend({
    22     /**
    23      * @global wp.Uploader
    24      *
     23Query = Attachments.extend(/** @lends wp.media.model.Query.prototype */{
     24    /**
    2525     * @param {array}  [models=[]]  Array of initial models to populate the collection.
    2626     * @param {object} [options={}]
     
    154154        }
    155155    }
    156 }, {
     156}, /** @lends wp.media.model.Query */{
    157157    /**
    158158     * @readonly
  • trunk/src/wp-includes/js/media/models/selection.js

    r33337 r41351  
     1var Attachments = wp.media.model.Attachments,
     2    Selection;
     3
    14/**
    25 * wp.media.model.Selection
     
    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.
  • trunk/src/wp-includes/js/media/routers/manage.js

    r41021 r41351  
    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',
  • trunk/src/wp-includes/js/media/utils/selection-sync.js

    r33337 r41351  
    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.
     8 *
     9 * @memberOf wp.media
    810 *
    911 * @mixin
  • trunk/src/wp-includes/js/media/views/attachment-compat.js

    r33337 r41351  
     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.
     8 *
     9 * @memberOf wp.media.view
    510 *
    611 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/attachment-filters.js

    r33337 r41351  
     1var $ = jQuery,
     2    AttachmentFilters;
     3
    14/**
    25 * wp.media.view.AttachmentFilters
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/attachment-filters/all.js

    r33337 r41351  
     1var l10n = wp.media.view.l10n,
     2    All;
     3
    14/**
    25 * wp.media.view.AttachmentFilters.All
     6 *
     7 * @memberOf wp.media.view.AttachmentFilters
    38 *
    49 * @class
     
    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 = {};
  • trunk/src/wp-includes/js/media/views/attachment-filters/date.js

    r33337 r41351  
     1var l10n = wp.media.view.l10n,
     2    DateFilter;
     3
    14/**
    25 * A filter dropdown for month/dates.
     6 *
     7 * @memberOf wp.media.view.AttachmentFilters
    38 *
    49 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachment-filters/uploaded.js

    r33337 r41351  
     1var l10n = wp.media.view.l10n,
     2    Uploaded;
     3
    14/**
    25 * wp.media.view.AttachmentFilters.Uploaded
     6 *
     7 * @memberOf wp.media.view.AttachmentFilters
    38 *
    49 * @class
     
    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'),
  • trunk/src/wp-includes/js/media/views/attachment.js

    r40874 r41351  
     1var View = wp.media.View,
     2    $ = jQuery,
     3    Attachment;
     4
    15/**
    26 * wp.media.view.Attachment
     7 *
     8 * @memberOf wp.media.view
    39 *
    410 * @class
     
    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',
     
    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
  • trunk/src/wp-includes/js/media/views/attachment/details-two-column.js

    r41021 r41351  
     1var Details = wp.media.view.Attachment.Details,
     2    TwoColumn;
     3
    14/**
    25 * wp.media.view.Attachment.Details.TwoColumn
     
    47 * A similar view to media.view.Attachment.Details
    58 * for use in the Edit Attachment modal.
     9 *
     10 * @memberOf wp.media.view.Attachment.Details
    611 *
    712 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachment/details.js

    r33337 r41351  
     1var Attachment = wp.media.view.Attachment,
     2    l10n = wp.media.view.l10n,
     3    Details;
     4
    15/**
    26 * wp.media.view.Attachment.Details
     7 *
     8 * @memberOf wp.media.view.Attachment
    39 *
    410 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/attachment/edit-library.js

    r33337 r41351  
    11/**
    22 * wp.media.view.Attachment.EditLibrary
     3 *
     4 * @memberOf wp.media.view.Attachment
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachment/edit-selection.js

    r33337 r41351  
    11/**
    2  * wp.media.view.Attachments.EditSelection
     2 * wp.media.view.Attachment.EditSelection
     3 *
     4 * @memberOf wp.media.view.Attachment
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachment/library.js

    r33337 r41351  
    11/**
    22 * wp.media.view.Attachment.Library
     3 *
     4 * @memberOf wp.media.view.Attachment
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachment/selection.js

    r33337 r41351  
    11/**
    22 * wp.media.view.Attachment.Selection
     3 *
     4 * @memberOf wp.media.view.Attachment
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/attachments.js

    r38793 r41351  
     1var View = wp.media.View,
     2    $ = jQuery,
     3    Attachments;
     4
    15/**
    26 * wp.media.view.Attachments
     7 *
     8 * @memberOf wp.media.view
    39 *
    410 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/attachments/browser.js

    r40573 r41351  
     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
     9 *
     10 * @memberOf wp.media.view
    311 *
    412 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/attachments/selection.js

    r33337 r41351  
     1var Attachments = wp.media.view.Attachments,
     2    Selection;
     3
    14/**
    25 * wp.media.view.Attachments.Selection
     6 *
     7 * @memberOf wp.media.view.Attachments
    38 *
    49 * @class
     
    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() {
  • trunk/src/wp-includes/js/media/views/audio-details.js

    r33337 r41351  
     1var MediaDetails = wp.media.view.MediaDetails,
     2    AudioDetails;
     3
    14/**
    25 * wp.media.view.AudioDetails
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    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'),
  • trunk/src/wp-includes/js/media/views/button-group.js

    r33337 r41351  
     1var $ = Backbone.$,
     2    ButtonGroup;
     3
    14/**
    25 * wp.media.view.ButtonGroup
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/button.js

    r33337 r41351  
    11/**
    22 * wp.media.view.Button
     3 *
     4 * @memberOf wp.media.view
    35 *
    46 * @class
     
    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',
  • trunk/src/wp-includes/js/media/views/button/delete-selected-permanently.js

    r36681 r41351  
     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
     9 *
     10 * @memberOf wp.media.view
    511 *
    612 * @class
     
    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 );
  • trunk/src/wp-includes/js/media/views/button/delete-selected.js

    r36681 r41351  
     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
     9 *
     10 * @memberOf wp.media.view
    511 *
    612 * @class
     
    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 );
  • trunk/src/wp-includes/js/media/views/button/select-mode-toggle.js

    r36681 r41351  
     1
     2var Button = wp.media.view.Button,
     3    l10n = wp.media.view.l10n,
     4    SelectModeToggle;
     5
    16/**
    27 * wp.media.view.SelectModeToggleButton
     8 *
     9 * @memberOf wp.media.view
    310 *
    411 * @class
     
    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, {
  • trunk/src/wp-includes/js/media/views/cropper.js

    r33337 r41351  
     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
     
    814 * wp.customize.HeaderControl.openMM.
    915 *
     16 * @memberOf wp.media.view
     17 *
    1018 * @class
    1119 * @augments wp.media.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'),
  • trunk/src/wp-includes/js/media/views/edit-image-details.js

    r33337 r41351  
     1var View = wp.media.View,
     2    EditImage = wp.media.view.EditImage,
     3    Details;
     4
    15/**
    26 * wp.media.view.EditImage.Details
     7 *
     8 * @memberOf wp.media.view.EditImage
    39 *
    410 * @class
     
    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;
  • trunk/src/wp-includes/js/media/views/edit-image.js

    r33337 r41351  
     1var View = wp.media.View,
     2    EditImage;
     3
    14/**
    25 * wp.media.view.EditImage
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    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'),
  • trunk/src/wp-includes/js/media/views/embed.js

    r31935 r41351  
    11/**
    22 * wp.media.view.Embed
     3 *
     4 * @memberOf wp.media.view
    35 *
    46 * @class
     
    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
  • trunk/src/wp-includes/js/media/views/embed/image.js

    r33337 r41351  
     1var AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay,
     2    EmbedImage;
     3
    14/**
    25 * wp.media.view.EmbedImage
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    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'),
  • trunk/src/wp-includes/js/media/views/embed/link.js

    r41206 r41351  
     1var $ = jQuery,
     2    EmbedLink;
     3
    14/**
    25 * wp.media.view.EmbedLink
     6 *
     7 * @memberOf wp.media.view
    38 *
    49 * @class
     
    813 * @augments Backbone.View
    914 */
    10 var $ = jQuery,
    11     EmbedLink;
    12 
    13 EmbedLink = wp.media.view.Settings.extend({
     15EmbedLink = wp.media.view.Settings.extend(/** @lends wp.media.view.EmbedLink.prototype */{
    1416    className: 'embed-link-settings',
    1517    template:  wp.template('embed-link-settings'),
  • trunk/src/wp-includes/js/media/views/embed/url.js

    r40772 r41351  
     1var View = wp.media.View,
     2    $ = jQuery,
     3    EmbedUrl;
     4
    15/**
    26 * wp.media.view.EmbedUrl
     7 *
     8 * @memberOf wp.media.view
    39 *
    410 * @class
     
    713 * @augments Backbone.View
    814 */
    9 var View = wp.media.View,
    10     $ = jQuery,
    11     EmbedUrl;
    12 
    13 EmbedUrl = View.extend({
     15EmbedUrl = View.extend(/** @lends wp.media.view.EmbedUrl.prototype */{
    1416    tagName:   'label',
    1517    className: 'embed-url',
  • trunk/src/wp-includes/js/media/views/focus-manager.js

    r31935 r41351  
    11/**
    22 * wp.media.view.FocusManager
     3 *
     4 * @memberOf wp.media.view
    35 *
    46 * @class
     
    79 * @augments Backbone.View
    810 */
    9 var FocusManager = wp.media.View.extend({
     11var FocusManager = wp.media.View.extend(/** @lends wp.media.view.FocusManager.prototype */{
    1012
    1113    events: {
  • trunk/src/wp-includes/js/media/views/frame.js

    r33337 r41351  
    44 * A frame is a composite view consisting of one or more regions and one or more
    55 * states.
     6 *
     7 * @memberOf wp.media.view
    68 *
    79 * @see wp.media.controller.State
     
    1416 * @mixes wp.media.controller.StateMachine
    1517 */
    16 var Frame = wp.media.View.extend({
     18var Frame = wp.media.View.extend(/** @lends wp.media.view.Frame.prototype */{
    1719    initialize: function() {
    1820        _.defaults( this.options, {
     
    142144         * Frame mode deactivation event.
    143145         *
    144          * @event this#{mode}:deactivate
     146         * @event wp.media.view.Frame#{mode}:deactivate
    145147         */
    146148        this.trigger( mode + ':deactivate' );
  • trunk/src/wp-includes/js/media/views/frame/audio-details.js

    r33337 r41351  
     1var MediaDetails = wp.media.view.MediaFrame.MediaDetails,
     2    MediaLibrary = wp.media.controller.MediaLibrary,
     3
     4    l10n = wp.media.view.l10n,
     5    AudioDetails;
     6
    17/**
    28 * wp.media.view.MediaFrame.AudioDetails
     9 *
     10 * @memberOf wp.media.view.MediaFrame
    311 *
    412 * @class