Make WordPress Core

Ticket #28510: 28510.3.patch

File 28510.3.patch, 115.6 KB (added by iseulde, 10 years ago)
  • Gruntfile.js

     
    235235                                        '!twenty{fourteen,fifteen}/js/html5.js'
    236236                                ]
    237237                        },
     238                        media: {
     239                                options: {
     240                                        browserify: true
     241                                },
     242                                expand: true,
     243                                cwd: SOURCE_DIR,
     244                                src: [
     245                                        'wp-includes/js/media/**/*.js',
     246                                        '!wp-includes/js/media/*.js',
     247                                        'wp-includes/js/media/*.manifest.js'
     248                                ]
     249                        },
    238250                        core: {
    239251                                expand: true,
    240252                                cwd: SOURCE_DIR,
     
    507519        grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
    508520
    509521        // JSHint task.
    510         grunt.registerTask('jshint:corejs', ['jshint:grunt', 'jshint:tests', 'jshint:themes', 'jshint:core']);
     522        grunt.registerTask( 'jshint:corejs', [
     523                'jshint:grunt',
     524                'jshint:tests',
     525                'jshint:themes',
     526                'jshint:core',
     527                'jshint:media'
     528        ] );
    511529
    512530        // Pre-commit task.
    513531        grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.',
  • src/wp-includes/js/media/audio-video.js

     
    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){
    2 /* global wp, _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer */
     2/* global _wpMediaViewsL10n, _wpmejsSettings */
    33
    44(function(_) {
    55        var media = wp.media,
     
    133133                        var content;
    134134
    135135                        _.each( this.defaults, function( value, key ) {
    136                                 model[ key ] = self.coerce( model, key );
     136                                model[ key ] = this.coerce( model, key );
    137137
    138138                                if ( value === model[ key ] ) {
    139139                                        delete model[ key ];
     
    223223        media.view.VideoDetails = require( './views/video-details.js' );
    224224
    225225}(_));
    226 },{"./controllers/audio-details.js":2,"./controllers/video-details.js":8,"./models/post-media.js":9,"./views/audio-details.js":21,"./views/frame/audio-details.js":25,"./views/frame/media-details.js":26,"./views/frame/video-details.js":28,"./views/media-details.js":31,"./views/video-details.js":50}],2:[function(require,module,exports){
    227 /*globals wp */
    228226
     227},{"./controllers/audio-details.js":2,"./controllers/video-details.js":8,"./models/post-media.js":9,"./views/audio-details.js":21,"./views/frame/audio-details.js":25,"./views/frame/media-details.js":26,"./views/frame/video-details.js":28,"./views/media-details.js":31,"./views/video-details.js":50}],2:[function(require,module,exports){
    229228/**
    230229 * The controller for the Audio Details state
    231230 *
     
    255254});
    256255
    257256module.exports = AudioDetails;
     257
    258258},{"./state.js":7}],3:[function(require,module,exports){
    259 /*globals _, wp, Backbone, getUserSetting, setUserSetting */
     259/* globals getUserSetting, setUserSetting */
    260260
    261261/**
    262262 * wp.media.controller.Library
     
    329329                        this.set( 'library', wp.media.query() );
    330330                }
    331331
    332                 if ( ! (selection instanceof Selection) ) {
     332                if ( ! ( selection instanceof wp.media.model.Selection ) ) {
    333333                        props = selection;
    334334
    335335                        if ( ! props ) {
     
    528528_.extend( Library.prototype, selectionSync );
    529529
    530530module.exports = Library;
    531 },{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){
    532 /*globals _, wp */
    533531
     532},{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){
    534533/**
    535534 * wp.media.controller.MediaLibrary
    536535 *
     
    579578});
    580579
    581580module.exports = MediaLibrary;
    582 },{"./library.js":3}],5:[function(require,module,exports){
    583 /*globals _, Backbone */
    584581
     582},{"./library.js":3}],5:[function(require,module,exports){
    585583/**
    586584 * wp.media.controller.Region
    587585 *
     
    759757});
    760758
    761759module.exports = Region;
    762 },{}],6:[function(require,module,exports){
    763 /*globals _, Backbone */
    764760
     761},{}],6:[function(require,module,exports){
    765762/**
    766763 * wp.media.controller.StateMachine
    767764 *
     
    884881});
    885882
    886883module.exports = StateMachine;
    887 },{}],7:[function(require,module,exports){
    888 /*globals _, Backbone */
    889884
     885},{}],7:[function(require,module,exports){
    890886/**
    891887 * wp.media.controller.State
    892888 *
     
    11261122});
    11271123
    11281124module.exports = State;
    1129 },{}],8:[function(require,module,exports){
    1130 /*globals wp */
    11311125
     1126},{}],8:[function(require,module,exports){
    11321127/**
    11331128 * The controller for the Video Details state
    11341129 *
     
    11581153});
    11591154
    11601155module.exports = VideoDetails;
    1161 },{"./state.js":7}],9:[function(require,module,exports){
    1162 /*globals Backbone, _, wp */
    11631156
     1157},{"./state.js":7}],9:[function(require,module,exports){
    11641158/**
    11651159 * Shared model class for audio and video. Updates the model after
    11661160 *   "Add Audio|Video Source" and "Replace Audio|Video" states return
     
    11991193});
    12001194
    12011195module.exports = PostMedia;
    1202 },{}],10:[function(require,module,exports){
    1203 /*globals _ */
    12041196
     1197},{}],10:[function(require,module,exports){
    12051198/**
    12061199 * wp.media.selectionSync
    12071200 *
     
    12661259};
    12671260
    12681261module.exports = selectionSync;
    1269 },{}],11:[function(require,module,exports){
    1270 /*globals _ */
    12711262
     1263},{}],11:[function(require,module,exports){
    12721264/**
    12731265 * wp.media.view.AttachmentCompat
    12741266 *
     
    13521344});
    13531345
    13541346module.exports = AttachmentCompat;
    1355 },{"./view.js":51}],12:[function(require,module,exports){
    1356 /*globals _, jQuery */
    13571347
     1348},{"./view.js":51}],12:[function(require,module,exports){
    13581349/**
    13591350 * wp.media.view.AttachmentFilters
    13601351 *
     
    14311422});
    14321423
    14331424module.exports = AttachmentFilters;
    1434 },{"./view.js":51}],13:[function(require,module,exports){
    1435 /*globals _, wp */
    14361425
     1426},{"./view.js":51}],13:[function(require,module,exports){
    14371427/**
    14381428 * wp.media.view.AttachmentFilters.All
    14391429 *
     
    15231513});
    15241514
    15251515module.exports = All;
    1526 },{"../attachment-filters.js":12}],14:[function(require,module,exports){
    1527 /*globals _, wp */
    15281516
     1517},{"../attachment-filters.js":12}],14:[function(require,module,exports){
    15291518/**
    15301519 * A filter dropdown for month/dates.
    15311520 *
     
    15661555});
    15671556
    15681557module.exports = DateFilter;
    1569 },{"../attachment-filters.js":12}],15:[function(require,module,exports){
    1570 /*globals wp */
    15711558
     1559},{"../attachment-filters.js":12}],15:[function(require,module,exports){
    15721560/**
    15731561 * wp.media.view.AttachmentFilters.Uploaded
    15741562 *
     
    16271615});
    16281616
    16291617module.exports = Uploaded;
    1630 },{"../attachment-filters.js":12}],16:[function(require,module,exports){
    1631 /*globals _, wp, jQuery */
    16321618
     1619},{"../attachment-filters.js":12}],16:[function(require,module,exports){
    16331620/**
    16341621 * wp.media.view.Attachment
    16351622 *
     
    21822169});
    21832170
    21842171module.exports = Attachment;
    2185 },{"./view.js":51}],17:[function(require,module,exports){
    2186 /*globals _, wp */
    21872172
     2173},{"./view.js":51}],17:[function(require,module,exports){
    21882174/**
    21892175 * wp.media.view.Attachment.Details
    21902176 *
     
    22442230        deleteAttachment: function( event ) {
    22452231                event.preventDefault();
    22462232
    2247                 if ( confirm( l10n.warnDelete ) ) {
     2233                if ( window.confirm( l10n.warnDelete ) ) {
    22482234                        this.model.destroy();
    22492235                        // Keep focus inside media modal
    22502236                        // after image is deleted
     
    23232309});
    23242310
    23252311module.exports = Details;
     2312
    23262313},{"../attachment.js":16}],18:[function(require,module,exports){
    23272314/**
    23282315 * wp.media.view.Attachment.Library
     
    23432330});
    23442331
    23452332module.exports = Library;
    2346 },{"../attachment.js":16}],19:[function(require,module,exports){
    2347 /*globals _, wp, jQuery */
    23482333
     2334},{"../attachment.js":16}],19:[function(require,module,exports){
    23492335/**
    23502336 * wp.media.view.Attachments
    23512337 *
     
    26182604
    26192605                // The scroll event occurs on the document, but the element
    26202606                // that should be checked is the document body.
    2621                 if ( el == document ) {
     2607                if ( el === document ) {
    26222608                        el = document.body;
    26232609                        scrollTop = $(document).scrollTop();
    26242610                }
     
    26442630});
    26452631
    26462632module.exports = Attachments;
    2647 },{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){
    2648 /*globals _, wp, jQuery */
    26492633
     2634},{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){
    26502635/**
    26512636 * wp.media.view.AttachmentsBrowser
    26522637 *
     
    28372822                                                return;
    28382823                                        }
    28392824
    2840                                         if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {
     2825                                        if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) {
    28412826                                                return;
    28422827                                        }
    28432828
    28442829                                        if ( mediaTrash &&
    28452830                                                'trash' !== selection.at( 0 ).get( 'status' ) &&
    2846                                                 ! confirm( l10n.warnBulkTrash ) ) {
     2831                                                ! window.confirm( l10n.warnBulkTrash ) ) {
    28472832
    28482833                                                return;
    28492834                                        }
     
    28912876                                        click: function() {
    28922877                                                var removed = [], selection = this.controller.state().get( 'selection' );
    28932878
    2894                                                 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
     2879                                                if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) {
    28952880                                                        return;
    28962881                                                }
    28972882
     
    31043089});
    31053090
    31063091module.exports = AttachmentsBrowser;
    3107 },{"../attachment-compat.js":11,"../attachment-filters/all.js":13,"../attachment-filters/date.js":14,"../attachment-filters/uploaded.js":15,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":30,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":46,"../uploader/status.js":48,"../view.js":51}],21:[function(require,module,exports){
    3108 /*globals wp */
    31093092
     3093},{"../attachment-compat.js":11,"../attachment-filters/all.js":13,"../attachment-filters/date.js":14,"../attachment-filters/uploaded.js":15,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":30,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":46,"../uploader/status.js":48,"../view.js":51}],21:[function(require,module,exports){
    31103094/**
    31113095 * wp.media.view.AudioDetails
    31123096 *
     
    31433127});
    31443128
    31453129module.exports = AudioDetails;
    3146 },{"./media-details":31}],22:[function(require,module,exports){
    3147 /*globals _, Backbone */
    31483130
     3131},{"./media-details":31}],22:[function(require,module,exports){
    31493132/**
    31503133 * wp.media.view.Button
    31513134 *
     
    32333216});
    32343217
    32353218module.exports = Button;
     3219
    32363220},{"./view.js":51}],23:[function(require,module,exports){
    32373221/**
    32383222 * wp.media.view.FocusManager
     
    32813265});
    32823266
    32833267module.exports = FocusManager;
    3284 },{"./view.js":51}],24:[function(require,module,exports){
    3285 /*globals _, Backbone */
    32863268
     3269},{"./view.js":51}],24:[function(require,module,exports){
    32873270/**
    32883271 * wp.media.view.Frame
    32893272 *
     
    34543437_.extend( Frame.prototype, StateMachine.prototype );
    34553438
    34563439module.exports = Frame;
    3457 },{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){
    3458 /*globals wp */
    34593440
     3441},{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){
    34603442/**
    34613443 * wp.media.view.MediaFrame.AudioDetails
    34623444 *
     
    35323514});
    35333515
    35343516module.exports = AudioDetails;
    3535 },{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){
    3536 /*globals wp */
    35373517
     3518},{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){
    35383519/**
    35393520 * wp.media.view.MediaFrame.MediaDetails
    35403521 *
     
    36653646});
    36663647
    36673648module.exports = MediaDetails;
    3668 },{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){
    3669 /*globals _, wp */
    36703649
     3650},{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){
    36713651/**
    36723652 * wp.media.view.MediaFrame.Select
    36733653 *
     
    38403820});
    38413821
    38423822module.exports = Select;
    3843 },{"../../controllers/library.js":3,"../attachments/browser.js":20,"../media-frame.js":32,"../toolbar/select.js":45,"../uploader/inline.js":46}],28:[function(require,module,exports){
    3844 /*globals _, wp */
    38453823
     3824},{"../../controllers/library.js":3,"../attachments/browser.js":20,"../media-frame.js":32,"../toolbar/select.js":45,"../uploader/inline.js":46}],28:[function(require,module,exports){
    38463825/**
    38473826 * wp.media.view.MediaFrame.VideoDetails
    38483827 *
     
    39783957});
    39793958
    39803959module.exports = VideoDetails;
     3960
    39813961},{"../../controllers/media-library.js":4,"../../controllers/video-details.js":8,"../video-details.js":50,"./media-details":26}],29:[function(require,module,exports){
    39823962/**
    39833963 * wp.media.view.Iframe
     
    40043984});
    40053985
    40063986module.exports = Iframe;
     3987
    40073988},{"./view.js":51}],30:[function(require,module,exports){
    40083989/**
    40093990 * @class
     
    40304011});
    40314012
    40324013module.exports = Label;
    4033 },{"./view.js":51}],31:[function(require,module,exports){
    4034 /*globals _, wp, jQuery */
    40354014
     4015},{"./view.js":51}],31:[function(require,module,exports){
    40364016/**
    40374017 * wp.media.view.MediaDetails
    40384018 *
     
    41164096         */
    41174097        setPlayer : function() {
    41184098                if ( ! this.players.length && this.media ) {
    4119                         this.players.push( new MediaElementPlayer( this.media, this.settings ) );
     4099                        this.players.push( new window.MediaElementPlayer( this.media, this.settings ) );
    41204100                }
    41214101        },
    41224102
     
    41444124         */
    41454125        render: function() {
    41464126                AttachmentDisplay.prototype.render.apply( this, arguments );
    4147                
     4127
    41484128                setTimeout( _.bind( function() {
    41494129                        this.resetFocus();
    41504130                }, this ), 10 );
     
    41834163});
    41844164
    41854165module.exports = MediaDetails;
    4186 },{"./settings/attachment-display.js":41}],32:[function(require,module,exports){
    4187 /*globals _, wp, jQuery */
    41884166
     4167},{"./settings/attachment-display.js":41}],32:[function(require,module,exports){
    41894168/**
    41904169 * wp.media.view.MediaFrame
    41914170 *
     
    44384417});
    44394418
    44404419module.exports = MediaFrame;
    4441 },{"./frame.js":24,"./iframe.js":29,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":49,"./view.js":51}],33:[function(require,module,exports){
    4442 /*globals wp, jQuery */
    44434420
     4421},{"./frame.js":24,"./iframe.js":29,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":49,"./view.js":51}],33:[function(require,module,exports){
    44444422/**
    44454423 * wp.media.view.MenuItem
    44464424 *
     
    45124490});
    45134491
    45144492module.exports = MenuItem;
     4493
    45154494},{"./view.js":51}],34:[function(require,module,exports){
    45164495/**
    45174496 * wp.media.view.Menu
     
    46284607});
    46294608
    46304609module.exports = Menu;
    4631 },{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
    4632 /*globals _, wp, jQuery */
    46334610
     4611},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
    46344612/**
    46354613 * wp.media.view.Modal
    46364614 *
     
    48444822});
    48454823
    48464824module.exports = Modal;
    4847 },{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){
    4848 /*globals _, Backbone */
    48494825
     4826},{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){
    48504827/**
    48514828 * wp.media.view.PriorityList
    48524829 *
     
    49454922});
    49464923
    49474924module.exports = PriorityList;
     4925
    49484926},{"./view.js":51}],37:[function(require,module,exports){
    49494927/**
    49504928 * wp.media.view.RouterItem
     
    49714949});
    49724950
    49734951module.exports = RouterItem;
     4952
    49744953},{"./menu-item.js":33}],38:[function(require,module,exports){
    49754954/**
    49764955 * wp.media.view.Router
     
    50084987});
    50094988
    50104989module.exports = Router;
    5011 },{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
    5012 /*globals wp */
    50134990
     4991},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
    50144992/**
    50154993 * wp.media.view.Search
    50164994 *
     
    50585036});
    50595037
    50605038module.exports = Search;
    5061 },{"./view.js":51}],40:[function(require,module,exports){
    5062 /*globals _, Backbone, jQuery */
    50635039
     5040},{"./view.js":51}],40:[function(require,module,exports){
    50645041/**
    50655042 * wp.media.view.Settings
    50665043 *
     
    51685145                // If the setting has a corresponding user setting,
    51695146                // update that as well.
    51705147                if ( userSetting = $setting.data('userSetting') ) {
    5171                         setUserSetting( userSetting, value );
     5148                        window.setUserSetting( userSetting, value );
    51725149                }
    51735150        },
    51745151
     
    51805157});
    51815158
    51825159module.exports = Settings;
    5183 },{"./view.js":51}],41:[function(require,module,exports){
    5184 /*globals _, wp */
    51855160
     5161},{"./view.js":51}],41:[function(require,module,exports){
    51865162/**
    51875163 * wp.media.view.Settings.AttachmentDisplay
    51885164 *
     
    52755251});
    52765252
    52775253module.exports = AttachmentDisplay;
     5254
    52785255},{"../settings.js":40}],42:[function(require,module,exports){
    52795256/**
    52805257 * wp.media.view.Sidebar
     
    52935270});
    52945271
    52955272module.exports = Sidebar;
    5296 },{"./priority-list.js":36}],43:[function(require,module,exports){
    5297 /*globals _, wp */
    52985273
     5274},{"./priority-list.js":36}],43:[function(require,module,exports){
    52995275/**
    53005276 * wp.media.view.Spinner
    53015277 *
     
    53325308});
    53335309
    53345310module.exports = Spinner;
    5335 },{"./view.js":51}],44:[function(require,module,exports){
    5336 /*globals Backbone, _ */
    53375311
     5312},{"./view.js":51}],44:[function(require,module,exports){
    53385313/**
    53395314 * wp.media.view.Toolbar
    53405315 *
     
    54955470});
    54965471
    54975472module.exports = Toolbar;
    5498 },{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){
    5499 /*globals _, wp */
    55005473
     5474},{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){
    55015475/**
    55025476 * wp.media.view.Toolbar.Select
    55035477 *
     
    55665540});
    55675541
    55685542module.exports = Select;
    5569 },{"../toolbar.js":44}],46:[function(require,module,exports){
    5570 /*globals _, wp */
    55715543
     5544},{"../toolbar.js":44}],46:[function(require,module,exports){
    55725545/**
    55735546 * wp.media.view.UploaderInline
    55745547 *
     
    56995672});
    57005673
    57015674module.exports = UploaderInline;
    5702 },{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){
    5703 /*globals wp */
    57045675
     5676},{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){
    57055677/**
    57065678 * wp.media.view.UploaderStatusError
    57075679 *
     
    57195691});
    57205692
    57215693module.exports = UploaderStatusError;
    5722 },{"../view.js":51}],48:[function(require,module,exports){
    5723 /*globals _, wp */
    57245694
     5695},{"../view.js":51}],48:[function(require,module,exports){
    57255696/**
    57265697 * wp.media.view.UploaderStatus
    57275698 *
     
    58595830});
    58605831
    58615832module.exports = UploaderStatus;
    5862 },{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){
    5863 /*globals _, wp, jQuery */
    58645833
     5834},{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){
    58655835/**
    58665836 * wp.media.view.UploaderWindow
    58675837 *
     
    59725942});
    59735943
    59745944module.exports = UploaderWindow;
    5975 },{"../view.js":51}],50:[function(require,module,exports){
    5976 /*globals wp */
    59775945
     5946},{"../view.js":51}],50:[function(require,module,exports){
    59785947/**
    59795948 * wp.media.view.VideoDetails
    59805949 *
     
    60165985});
    60175986
    60185987module.exports = VideoDetails;
    6019 },{"./media-details":31}],51:[function(require,module,exports){
    6020 /*globals wp */
    60215988
     5989},{"./media-details":31}],51:[function(require,module,exports){
    60225990/**
    60235991 * wp.media.View
    60245992 *
     
    60836051});
    60846052
    60856053module.exports = View;
     6054
    60866055},{}]},{},[1]);
  • src/wp-includes/js/media/audio-video.manifest.js

     
    1 /* global wp, _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer */
     1/* global _wpMediaViewsL10n, _wpmejsSettings */
    22
    33(function(_) {
    44        var media = wp.media,
     
    132132                        var content;
    133133
    134134                        _.each( this.defaults, function( value, key ) {
    135                                 model[ key ] = self.coerce( model, key );
     135                                model[ key ] = this.coerce( model, key );
    136136
    137137                                if ( value === model[ key ] ) {
    138138                                        delete model[ key ];
     
    221221        media.view.AudioDetails = require( './views/audio-details.js' );
    222222        media.view.VideoDetails = require( './views/video-details.js' );
    223223
    224 }(_));
    225  No newline at end of file
     224}(_));
  • src/wp-includes/js/media/controllers/audio-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * The controller for the Audio Details state
    53 *
     
    2826        }
    2927});
    3028
    31 module.exports = AudioDetails;
    32  No newline at end of file
     29module.exports = AudioDetails;
  • src/wp-includes/js/media/controllers/collection-add.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.CollectionAdd
    53 *
     
    9896        }
    9997});
    10098
    101 module.exports = CollectionAdd;
    102  No newline at end of file
     99module.exports = CollectionAdd;
  • src/wp-includes/js/media/controllers/collection-edit.js

     
    1 /*globals wp, jQuery, Backbone */
    2 
    31/**
    42 * wp.media.controller.CollectionEdit
    53 *
     
    159157        }
    160158});
    161159
    162 module.exports = CollectionEdit;
    163  No newline at end of file
     160module.exports = CollectionEdit;
  • src/wp-includes/js/media/controllers/cropper.js

     
    1 /*globals _, wp, Backbone */
    2 
    31/**
    42 * wp.media.controller.Cropper
    53 *
     
    7573
    7674                                                this.$el.text(l10n.cropping);
    7775                                                this.$el.attr('disabled', true);
    78                                                
     76
    7977                                                controller.state().doCrop( selection ).done( function( croppedImage ) {
    8078                                                        controller.trigger('cropped', croppedImage );
    8179                                                        controller.close();
     
    116114        }
    117115});
    118116
    119 module.exports = Cropper;
    120  No newline at end of file
     117module.exports = Cropper;
  • src/wp-includes/js/media/controllers/edit-attachment-metadata.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.controller.EditAttachmentMetadata
    53 *
     
    2624        }
    2725});
    2826
    29 module.exports = EditAttachmentMetadata;
    30  No newline at end of file
     27module.exports = EditAttachmentMetadata;
  • src/wp-includes/js/media/controllers/edit-image.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.EditImage
    53 *
     
    7573        }
    7674});
    7775
    78 module.exports = EditImage;
    79  No newline at end of file
     76module.exports = EditImage;
  • src/wp-includes/js/media/controllers/embed.js

     
    1 /*globals _, wp, jQuery, Backbone */
    2 
    31/**
    42 * wp.media.controller.Embed
    53 *
     
    134132        }
    135133});
    136134
    137 module.exports = Embed;
    138  No newline at end of file
     135module.exports = Embed;
  • src/wp-includes/js/media/controllers/featured-image.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.FeaturedImage
    53 *
     
    119117        }
    120118});
    121119
    122 module.exports = FeaturedImage;
    123  No newline at end of file
     120module.exports = FeaturedImage;
  • src/wp-includes/js/media/controllers/gallery-add.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * A state for selecting more images to add to a gallery.
    53 *
     
    5149         */
    5250        initialize: function() {
    5351                // If a library wasn't supplied, create a library of images.
    54                 if ( ! this.get('library') )
     52                if ( ! this.get('library') ) {
    5553                        this.set( 'library', wp.media.query({ type: 'image' }) );
     54                }
    5655
    5756                Library.prototype.initialize.apply( this, arguments );
    5857        },
     
    6463                var library = this.get('library'),
    6564                        edit    = this.frame.state('gallery-edit').get('library');
    6665
    67                 if ( this.editLibrary && this.editLibrary !== edit )
     66                if ( this.editLibrary && this.editLibrary !== edit ) {
    6867                        library.unobserve( this.editLibrary );
     68                }
    6969
    7070                // Accepts attachments that exist in the original library and
    7171                // that do not exist in gallery's library.
     
    8484        }
    8585});
    8686
    87 module.exports = GalleryAdd;
    88  No newline at end of file
     87module.exports = GalleryAdd;
  • src/wp-includes/js/media/controllers/gallery-edit.js

     
    1 /*globals wp, Backbone */
    2 
    31/**
    42 * wp.media.controller.GalleryEdit
    53 *
     
    6159         */
    6260        initialize: function() {
    6361                // If we haven't been provided a `library`, create a `Selection`.
    64                 if ( ! this.get('library') )
     62                if ( ! this.get('library') ) {
    6563                        this.set( 'library', new wp.media.model.Selection() );
     64                }
    6665
    6766                // The single `Attachment` view to be used in the `Attachments` view.
    68                 if ( ! this.get('AttachmentView') )
     67                if ( ! this.get('AttachmentView') ) {
    6968                        this.set( 'AttachmentView', EditLibraryView );
     69                }
     70
    7071                Library.prototype.initialize.apply( this, arguments );
    7172        },
    7273
     
    136137        }
    137138});
    138139
    139 module.exports = GalleryEdit;
    140  No newline at end of file
     140module.exports = GalleryEdit;
  • src/wp-includes/js/media/controllers/image-details.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.ImageDetails
    53 *
     
    5957        }
    6058});
    6159
    62 module.exports = ImageDetails;
    63  No newline at end of file
     60module.exports = ImageDetails;
  • src/wp-includes/js/media/controllers/library.js

     
    1 /*globals _, wp, Backbone, getUserSetting, setUserSetting */
     1/* globals getUserSetting, setUserSetting */
    22
    33/**
    44 * wp.media.controller.Library
     
    7171                        this.set( 'library', wp.media.query() );
    7272                }
    7373
    74                 if ( ! (selection instanceof Selection) ) {
     74                if ( ! ( selection instanceof wp.media.model.Selection ) ) {
    7575                        props = selection;
    7676
    7777                        if ( ! props ) {
     
    269269// Make selectionSync available on any Media Library state.
    270270_.extend( Library.prototype, selectionSync );
    271271
    272 module.exports = Library;
    273  No newline at end of file
     272module.exports = Library;
  • src/wp-includes/js/media/controllers/media-library.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.MediaLibrary
    53 *
     
    4745        }
    4846});
    4947
    50 module.exports = MediaLibrary;
    51  No newline at end of file
     48module.exports = MediaLibrary;
  • src/wp-includes/js/media/controllers/region.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.controller.Region
    53 *
     
    176174        }
    177175});
    178176
    179 module.exports = Region;
    180  No newline at end of file
     177module.exports = Region;
  • src/wp-includes/js/media/controllers/replace-image.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.controller.ReplaceImage
    53 *
     
    105103        }
    106104});
    107105
    108 module.exports = ReplaceImage;
    109  No newline at end of file
     106module.exports = ReplaceImage;
  • src/wp-includes/js/media/controllers/state-machine.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.controller.StateMachine
    53 *
     
    121119        };
    122120});
    123121
    124 module.exports = StateMachine;
    125  No newline at end of file
     122module.exports = StateMachine;
  • src/wp-includes/js/media/controllers/state.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.controller.State
    53 *
     
    238236        };
    239237});
    240238
    241 module.exports = State;
    242  No newline at end of file
     239module.exports = State;
  • src/wp-includes/js/media/controllers/video-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * The controller for the Video Details state
    53 *
     
    2826        }
    2927});
    3028
    31 module.exports = VideoDetails;
    32  No newline at end of file
     29module.exports = VideoDetails;
  • src/wp-includes/js/media/grid.js

     
    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){
    2 /*globals wp */
    3 
    42/**
    53 * wp.media.controller.EditAttachmentMetadata
    64 *
     
    2826});
    2927
    3028module.exports = EditAttachmentMetadata;
    31 },{"./state.js":6}],2:[function(require,module,exports){
    32 /*globals _, wp */
    3329
     30},{"./state.js":6}],2:[function(require,module,exports){
    3431/**
    3532 * wp.media.controller.EditImage
    3633 *
     
    107104});
    108105
    109106module.exports = EditImage;
     107
    110108},{"../views/toolbar.js":46,"./state.js":6}],3:[function(require,module,exports){
    111 /*globals _, wp, Backbone, getUserSetting, setUserSetting */
     109/* globals getUserSetting, setUserSetting */
    112110
    113111/**
    114112 * wp.media.controller.Library
     
    181179                        this.set( 'library', wp.media.query() );
    182180                }
    183181
    184                 if ( ! (selection instanceof Selection) ) {
     182                if ( ! ( selection instanceof wp.media.model.Selection ) ) {
    185183                        props = selection;
    186184
    187185                        if ( ! props ) {
     
    380378_.extend( Library.prototype, selectionSync );
    381379
    382380module.exports = Library;
    383 },{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){
    384 /*globals _, Backbone */
    385381
     382},{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){
    386383/**
    387384 * wp.media.controller.Region
    388385 *
     
    560557});
    561558
    562559module.exports = Region;
    563 },{}],5:[function(require,module,exports){
    564 /*globals _, Backbone */
    565560
     561},{}],5:[function(require,module,exports){
    566562/**
    567563 * wp.media.controller.StateMachine
    568564 *
     
    685681});
    686682
    687683module.exports = StateMachine;
    688 },{}],6:[function(require,module,exports){
    689 /*globals _, Backbone */
    690684
     685},{}],6:[function(require,module,exports){
    691686/**
    692687 * wp.media.controller.State
    693688 *
     
    927922});
    928923
    929924module.exports = State;
     925
    930926},{}],7:[function(require,module,exports){
    931 /* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
    932927(function (wp) {
    933928        var media = wp.media;
    934929
     
    943938        media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' );
    944939
    945940}(wp));
    946 },{"./controllers/edit-attachment-metadata.js":1,"./routers/manage.js":8,"./views/attachment/details-two-column.js":16,"./views/button/delete-selected-permanently.js":22,"./views/button/delete-selected.js":23,"./views/button/select-mode-toggle.js":24,"./views/edit-image-details.js":25,"./views/frame/edit-attachments.js":29,"./views/frame/manage.js":30}],8:[function(require,module,exports){
    947 /*globals jQuery, Backbone */
    948941
     942},{"./controllers/edit-attachment-metadata.js":1,"./routers/manage.js":8,"./views/attachment/details-two-column.js":16,"./views/button/delete-selected-permanently.js":22,"./views/button/delete-selected.js":23,"./views/button/select-mode-toggle.js":24,"./views/edit-image-details.js":25,"./views/frame/edit-attachments.js":29,"./views/frame/manage.js":30}],8:[function(require,module,exports){
    949943/**
    950944 * A router for handling the browser history and application state.
    951945 *
     
    990984});
    991985
    992986module.exports = Router;
    993 },{}],9:[function(require,module,exports){
    994 /*globals _ */
    995987
     988},{}],9:[function(require,module,exports){
    996989/**
    997990 * wp.media.selectionSync
    998991 *
     
    10571050};
    10581051
    10591052module.exports = selectionSync;
    1060 },{}],10:[function(require,module,exports){
    1061 /*globals _ */
    10621053
     1054},{}],10:[function(require,module,exports){
    10631055/**
    10641056 * wp.media.view.AttachmentCompat
    10651057 *
     
    11431135});
    11441136
    11451137module.exports = AttachmentCompat;
    1146 },{"./view.js":51}],11:[function(require,module,exports){
    1147 /*globals _, jQuery */
    11481138
     1139},{"./view.js":51}],11:[function(require,module,exports){
    11491140/**
    11501141 * wp.media.view.AttachmentFilters
    11511142 *
     
    12221213});
    12231214
    12241215module.exports = AttachmentFilters;
    1225 },{"./view.js":51}],12:[function(require,module,exports){
    1226 /*globals _, wp */
    12271216
     1217},{"./view.js":51}],12:[function(require,module,exports){
    12281218/**
    12291219 * wp.media.view.AttachmentFilters.All
    12301220 *
     
    13141304});
    13151305
    13161306module.exports = All;
    1317 },{"../attachment-filters.js":11}],13:[function(require,module,exports){
    1318 /*globals _, wp */
    13191307
     1308},{"../attachment-filters.js":11}],13:[function(require,module,exports){
    13201309/**
    13211310 * A filter dropdown for month/dates.
    13221311 *
     
    13571346});
    13581347
    13591348module.exports = DateFilter;
    1360 },{"../attachment-filters.js":11}],14:[function(require,module,exports){
    1361 /*globals wp */
    13621349
     1350},{"../attachment-filters.js":11}],14:[function(require,module,exports){
    13631351/**
    13641352 * wp.media.view.AttachmentFilters.Uploaded
    13651353 *
     
    14181406});
    14191407
    14201408module.exports = Uploaded;
    1421 },{"../attachment-filters.js":11}],15:[function(require,module,exports){
    1422 /*globals _, wp, jQuery */
    14231409
     1410},{"../attachment-filters.js":11}],15:[function(require,module,exports){
    14241411/**
    14251412 * wp.media.view.Attachment
    14261413 *
     
    19731960});
    19741961
    19751962module.exports = Attachment;
    1976 },{"./view.js":51}],16:[function(require,module,exports){
    1977 /*globals wp */
    19781963
     1964},{"./view.js":51}],16:[function(require,module,exports){
    19791965/**
    19801966 * A similar view to media.view.Attachment.Details
    19811967 * for use in the Edit Attachment modal.
     
    20101996                wp.media.mixin.removeAllPlayers();
    20111997                this.$( 'audio, video' ).each( function (i, elem) {
    20121998                        var el = MediaDetails.prepareSrc( elem );
    2013                         new MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     1999                        new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
    20142000                } );
    20152001        }
    20162002});
    20172003
    20182004module.exports = TwoColumn;
    2019 },{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){
    2020 /*globals _, wp */
    20212005
     2006},{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){
    20222007/**
    20232008 * wp.media.view.Attachment.Details
    20242009 *
     
    20782063        deleteAttachment: function( event ) {
    20792064                event.preventDefault();
    20802065
    2081                 if ( confirm( l10n.warnDelete ) ) {
     2066                if ( window.confirm( l10n.warnDelete ) ) {
    20822067                        this.model.destroy();
    20832068                        // Keep focus inside media modal
    20842069                        // after image is deleted
     
    21572142});
    21582143
    21592144module.exports = Details;
     2145
    21602146},{"../attachment.js":15}],18:[function(require,module,exports){
    21612147/**
    21622148 * wp.media.view.Attachment.Library
     
    21772163});
    21782164
    21792165module.exports = Library;
    2180 },{"../attachment.js":15}],19:[function(require,module,exports){
    2181 /*globals _, wp, jQuery */
    21822166
     2167},{"../attachment.js":15}],19:[function(require,module,exports){
    21832168/**
    21842169 * wp.media.view.Attachments
    21852170 *
     
    24522437
    24532438                // The scroll event occurs on the document, but the element
    24542439                // that should be checked is the document body.
    2455                 if ( el == document ) {
     2440                if ( el === document ) {
    24562441                        el = document.body;
    24572442                        scrollTop = $(document).scrollTop();
    24582443                }
     
    24782463});
    24792464
    24802465module.exports = Attachments;
    2481 },{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){
    2482 /*globals _, wp, jQuery */
    24832466
     2467},{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){
    24842468/**
    24852469 * wp.media.view.AttachmentsBrowser
    24862470 *
     
    26712655                                                return;
    26722656                                        }
    26732657
    2674                                         if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {
     2658                                        if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) {
    26752659                                                return;
    26762660                                        }
    26772661
    26782662                                        if ( mediaTrash &&
    26792663                                                'trash' !== selection.at( 0 ).get( 'status' ) &&
    2680                                                 ! confirm( l10n.warnBulkTrash ) ) {
     2664                                                ! window.confirm( l10n.warnBulkTrash ) ) {
    26812665
    26822666                                                return;
    26832667                                        }
     
    27252709                                        click: function() {
    27262710                                                var removed = [], selection = this.controller.state().get( 'selection' );
    27272711
    2728                                                 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
     2712                                                if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) {
    27292713                                                        return;
    27302714                                                }
    27312715
     
    29382922});
    29392923
    29402924module.exports = AttachmentsBrowser;
    2941 },{"../attachment-compat.js":10,"../attachment-filters/all.js":12,"../attachment-filters/date.js":13,"../attachment-filters/uploaded.js":14,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":32,"../search.js":41,"../settings/attachment-display.js":43,"../sidebar.js":44,"../spinner.js":45,"../toolbar.js":46,"../uploader/inline.js":47,"../uploader/status.js":49,"../view.js":51}],21:[function(require,module,exports){
    2942 /*globals _, Backbone */
    29432925
     2926},{"../attachment-compat.js":10,"../attachment-filters/all.js":12,"../attachment-filters/date.js":13,"../attachment-filters/uploaded.js":14,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":32,"../search.js":41,"../settings/attachment-display.js":43,"../sidebar.js":44,"../spinner.js":45,"../toolbar.js":46,"../uploader/inline.js":47,"../uploader/status.js":49,"../view.js":51}],21:[function(require,module,exports){
    29442927/**
    29452928 * wp.media.view.Button
    29462929 *
     
    30283011});
    30293012
    30303013module.exports = Button;
     3014
    30313015},{"./view.js":51}],22:[function(require,module,exports){
    30323016/**
    30333017 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
     
    30723056});
    30733057
    30743058module.exports = DeleteSelectedPermanently;
    3075 },{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){
    3076 /*globals wp */
    30773059
     3060},{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){
    30783061/**
    30793062 * A button that handles bulk Delete/Trash logic
    30803063 *
     
    31243107});
    31253108
    31263109module.exports = DeleteSelected;
    3127 },{"../button.js":21}],24:[function(require,module,exports){
    3128 /*globals wp */
    31293110
     3111},{"../button.js":21}],24:[function(require,module,exports){
    31303112var Button = require( '../button.js' ),
    31313113        l10n = wp.media.view.l10n,
    31323114        SelectModeToggle;
     
    31803162});
    31813163
    31823164module.exports = SelectModeToggle;
     3165
    31833166},{"../button.js":21}],25:[function(require,module,exports){
    31843167var View = require( './view.js' ),
    31853168        EditImage = require( './edit-image.js' ),
     
    32053188});
    32063189
    32073190module.exports = Details;
    3208 },{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){
    3209 /*globals _, wp */
    32103191
     3192},{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){
    32113193var View = require( './view.js' ),
    32123194        EditImage;
    32133195
     
    32593241});
    32603242
    32613243module.exports = EditImage;
     3244
    32623245},{"./view.js":51}],27:[function(require,module,exports){
    32633246/**
    32643247 * wp.media.view.FocusManager
     
    33073290});
    33083291
    33093292module.exports = FocusManager;
    3310 },{"./view.js":51}],28:[function(require,module,exports){
    3311 /*globals _, Backbone */
    33123293
     3294},{"./view.js":51}],28:[function(require,module,exports){
    33133295/**
    33143296 * wp.media.view.Frame
    33153297 *
     
    34803462_.extend( Frame.prototype, StateMachine.prototype );
    34813463
    34823464module.exports = Frame;
    3483 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){
    3484 /*globals _, wp, jQuery */
    34853465
     3466},{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){
    34863467/**
    34873468 * A frame for editing the details of a specific media item.
    34883469 *
     
    37273708});
    37283709
    37293710module.exports = EditAttachments;
    3730 },{"../../controllers/edit-attachment-metadata.js":1,"../../controllers/edit-image.js":2,"../attachment-compat.js":10,"../attachment/details-two-column.js":16,"../edit-image-details.js":25,"../frame.js":28,"../media-frame.js":34,"../modal.js":37}],30:[function(require,module,exports){
    3731 /*globals _, Backbone, wp, jQuery */
    37323711
     3712},{"../../controllers/edit-attachment-metadata.js":1,"../../controllers/edit-image.js":2,"../attachment-compat.js":10,"../attachment/details-two-column.js":16,"../edit-image-details.js":25,"../frame.js":28,"../media-frame.js":34,"../modal.js":37}],30:[function(require,module,exports){
    37333713/**
    37343714 * wp.media.view.MediaFrame.Manage
    37353715 *
     
    39673947                // Verify pushState support and activate
    39683948                if ( window.history && window.history.pushState ) {
    39693949                        Backbone.history.start( {
    3970                                 root: _wpMediaGridSettings.adminUrl,
     3950                                root: window._wpMediaGridSettings.adminUrl,
    39713951                                pushState: true
    39723952                        } );
    39733953                }
     
    39753955});
    39763956
    39773957module.exports = Manage;
     3958
    39783959},{"../../controllers/library.js":3,"../../routers/manage.js":8,"../attachments/browser.js":20,"../media-frame.js":34,"../uploader/window.js":50}],31:[function(require,module,exports){
    39793960/**
    39803961 * wp.media.view.Iframe
     
    40013982});
    40023983
    40033984module.exports = Iframe;
     3985
    40043986},{"./view.js":51}],32:[function(require,module,exports){
    40053987/**
    40063988 * @class
     
    40274009});
    40284010
    40294011module.exports = Label;
    4030 },{"./view.js":51}],33:[function(require,module,exports){
    4031 /*globals _, wp, jQuery */
    40324012
     4013},{"./view.js":51}],33:[function(require,module,exports){
    40334014/**
    40344015 * wp.media.view.MediaDetails
    40354016 *
     
    41134094         */
    41144095        setPlayer : function() {
    41154096                if ( ! this.players.length && this.media ) {
    4116                         this.players.push( new MediaElementPlayer( this.media, this.settings ) );
     4097                        this.players.push( new window.MediaElementPlayer( this.media, this.settings ) );
    41174098                }
    41184099        },
    41194100
     
    41414122         */
    41424123        render: function() {
    41434124                AttachmentDisplay.prototype.render.apply( this, arguments );
    4144                
     4125
    41454126                setTimeout( _.bind( function() {
    41464127                        this.resetFocus();
    41474128                }, this ), 10 );
     
    41804161});
    41814162
    41824163module.exports = MediaDetails;
    4183 },{"./settings/attachment-display.js":43}],34:[function(require,module,exports){
    4184 /*globals _, wp, jQuery */
    41854164
     4165},{"./settings/attachment-display.js":43}],34:[function(require,module,exports){
    41864166/**
    41874167 * wp.media.view.MediaFrame
    41884168 *
     
    44354415});
    44364416
    44374417module.exports = MediaFrame;
    4438 },{"./frame.js":28,"./iframe.js":31,"./menu.js":36,"./modal.js":37,"./router.js":40,"./toolbar.js":46,"./uploader/window.js":50,"./view.js":51}],35:[function(require,module,exports){
    4439 /*globals wp, jQuery */
    44404418
     4419},{"./frame.js":28,"./iframe.js":31,"./menu.js":36,"./modal.js":37,"./router.js":40,"./toolbar.js":46,"./uploader/window.js":50,"./view.js":51}],35:[function(require,module,exports){
    44414420/**
    44424421 * wp.media.view.MenuItem
    44434422 *
     
    45094488});
    45104489
    45114490module.exports = MenuItem;
     4491
    45124492},{"./view.js":51}],36:[function(require,module,exports){
    45134493/**
    45144494 * wp.media.view.Menu
     
    46254605});
    46264606
    46274607module.exports = Menu;
    4628 },{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){
    4629 /*globals _, wp, jQuery */
    46304608
     4609},{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){
    46314610/**
    46324611 * wp.media.view.Modal
    46334612 *
     
    48414820});
    48424821
    48434822module.exports = Modal;
    4844 },{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){
    4845 /*globals _, Backbone */
    48464823
     4824},{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){
    48474825/**
    48484826 * wp.media.view.PriorityList
    48494827 *
     
    49424920});
    49434921
    49444922module.exports = PriorityList;
     4923
    49454924},{"./view.js":51}],39:[function(require,module,exports){
    49464925/**
    49474926 * wp.media.view.RouterItem
     
    49684947});
    49694948
    49704949module.exports = RouterItem;
     4950
    49714951},{"./menu-item.js":35}],40:[function(require,module,exports){
    49724952/**
    49734953 * wp.media.view.Router
     
    50054985});
    50064986
    50074987module.exports = Router;
    5008 },{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){
    5009 /*globals wp */
    50104988
     4989},{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){
    50114990/**
    50124991 * wp.media.view.Search
    50134992 *
     
    50555034});
    50565035
    50575036module.exports = Search;
    5058 },{"./view.js":51}],42:[function(require,module,exports){
    5059 /*globals _, Backbone, jQuery */
    50605037
     5038},{"./view.js":51}],42:[function(require,module,exports){
    50615039/**
    50625040 * wp.media.view.Settings
    50635041 *
     
    51655143                // If the setting has a corresponding user setting,
    51665144                // update that as well.
    51675145                if ( userSetting = $setting.data('userSetting') ) {
    5168                         setUserSetting( userSetting, value );
     5146                        window.setUserSetting( userSetting, value );
    51695147                }
    51705148        },
    51715149
     
    51775155});
    51785156
    51795157module.exports = Settings;
    5180 },{"./view.js":51}],43:[function(require,module,exports){
    5181 /*globals _, wp */
    51825158
     5159},{"./view.js":51}],43:[function(require,module,exports){
    51835160/**
    51845161 * wp.media.view.Settings.AttachmentDisplay
    51855162 *
     
    52725249});
    52735250
    52745251module.exports = AttachmentDisplay;
     5252
    52755253},{"../settings.js":42}],44:[function(require,module,exports){
    52765254/**
    52775255 * wp.media.view.Sidebar
     
    52905268});
    52915269
    52925270module.exports = Sidebar;
    5293 },{"./priority-list.js":38}],45:[function(require,module,exports){
    5294 /*globals _, wp */
    52955271
     5272},{"./priority-list.js":38}],45:[function(require,module,exports){
    52965273/**
    52975274 * wp.media.view.Spinner
    52985275 *
     
    53295306});
    53305307
    53315308module.exports = Spinner;
    5332 },{"./view.js":51}],46:[function(require,module,exports){
    5333 /*globals Backbone, _ */
    53345309
     5310},{"./view.js":51}],46:[function(require,module,exports){
    53355311/**
    53365312 * wp.media.view.Toolbar
    53375313 *
     
    54925468});
    54935469
    54945470module.exports = Toolbar;
    5495 },{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){
    5496 /*globals _, wp */
    54975471
     5472},{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){
    54985473/**
    54995474 * wp.media.view.UploaderInline
    55005475 *
     
    56255600});
    56265601
    56275602module.exports = UploaderInline;
    5628 },{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){
    5629 /*globals wp */
    56305603
     5604},{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){
    56315605/**
    56325606 * wp.media.view.UploaderStatusError
    56335607 *
     
    56455619});
    56465620
    56475621module.exports = UploaderStatusError;
    5648 },{"../view.js":51}],49:[function(require,module,exports){
    5649 /*globals _, wp */
    56505622
     5623},{"../view.js":51}],49:[function(require,module,exports){
    56515624/**
    56525625 * wp.media.view.UploaderStatus
    56535626 *
     
    57855758});
    57865759
    57875760module.exports = UploaderStatus;
    5788 },{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){
    5789 /*globals _, wp, jQuery */
    57905761
     5762},{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){
    57915763/**
    57925764 * wp.media.view.UploaderWindow
    57935765 *
     
    58985870});
    58995871
    59005872module.exports = UploaderWindow;
    5901 },{"../view.js":51}],51:[function(require,module,exports){
    5902 /*globals wp */
    59035873
     5874},{"../view.js":51}],51:[function(require,module,exports){
    59045875/**
    59055876 * wp.media.View
    59065877 *
     
    59655936});
    59665937
    59675938module.exports = View;
     5939
    59685940},{}]},{},[7]);
  • src/wp-includes/js/media/grid.manifest.js

     
    1 /* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
    21(function (wp) {
    32        var media = wp.media;
    43
     
    1211        media.view.DeleteSelectedButton = require( './views/button/delete-selected.js' );
    1312        media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' );
    1413
    15 }(wp));
    16  No newline at end of file
     14}(wp));
  • src/wp-includes/js/media/models/attachment.js

     
    1 /*globals jQuery, Backbone, _, wp */
    2 
    31/**
    42 * wp.media.model.Attachment
    53 *
     
    128126                        return $.Deferred().rejectWith( this ).promise();
    129127                }
    130128
    131                 return media.post( 'save-attachment-compat', _.defaults({
     129                return wp.media.post( 'save-attachment-compat', _.defaults({
    132130                        id:      this.id,
    133131                        nonce:   this.get('nonces').update,
    134132                        post_id: wp.media.model.settings.post.id
     
    165163        })
    166164});
    167165
    168 module.exports = Attachment;
    169  No newline at end of file
     166module.exports = Attachment;
  • src/wp-includes/js/media/models/attachments.js

     
    1 /*globals jQuery, Backbone, _, wp */
    2 
    31/**
    42 * wp.media.model.Attachments
    53 *
     
    323321                // checking if we're still mirroring that collection when
    324322                // the request resolves.
    325323                mirroring.more( options ).done( function() {
    326                         if ( this === attachments.mirroring )
     324                        if ( this === attachments.mirroring ) {
    327325                                deferred.resolveWith( this );
     326                        }
    328327                });
    329328
    330329                return deferred.promise();
     
    532531        }
    533532});
    534533
    535 module.exports = Attachments;
    536  No newline at end of file
     534module.exports = Attachments;
  • src/wp-includes/js/media/models/post-image.js

     
    1 /*globals jQuery, Backbone */
    2 
    31/**
    42 * wp.media.model.PostImage
    53 *
     
    153151        }
    154152});
    155153
    156 module.exports = PostImage;
    157  No newline at end of file
     154module.exports = PostImage;
  • src/wp-includes/js/media/models/post-media.js

     
    1 /*globals Backbone, _, wp */
    2 
    31/**
    42 * Shared model class for audio and video. Updates the model after
    53 *   "Add Audio|Video Source" and "Replace Audio|Video" states return
     
    3735        }
    3836});
    3937
    40 module.exports = PostMedia;
    41  No newline at end of file
     38module.exports = PostMedia;
  • src/wp-includes/js/media/models/query.js

     
    1 /*globals jQuery, _, wp */
    2 
    31/**
    42 * wp.media.model.Query
    53 *
     
    305303        }())
    306304});
    307305
    308 module.exports = Query;
    309  No newline at end of file
     306module.exports = Query;
  • src/wp-includes/js/media/models/selection.js

     
    1 /*globals _ */
    2 
    31/**
    42 * wp.media.model.Selection
    53 *
     
    9492        }
    9593});
    9694
    97 module.exports = Selection;
    98  No newline at end of file
     95module.exports = Selection;
  • src/wp-includes/js/media/models.js

     
    231231        });
    232232
    233233}(jQuery));
    234 },{"./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){
    235 /*globals jQuery, Backbone, _, wp */
    236234
     235},{"./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){
    237236/**
    238237 * wp.media.model.Attachment
    239238 *
     
    362361                        return $.Deferred().rejectWith( this ).promise();
    363362                }
    364363
    365                 return media.post( 'save-attachment-compat', _.defaults({
     364                return wp.media.post( 'save-attachment-compat', _.defaults({
    366365                        id:      this.id,
    367366                        nonce:   this.get('nonces').update,
    368367                        post_id: wp.media.model.settings.post.id
     
    400399});
    401400
    402401module.exports = Attachment;
    403 },{"./attachments.js":3}],3:[function(require,module,exports){
    404 /*globals jQuery, Backbone, _, wp */
    405402
     403},{"./attachments.js":3}],3:[function(require,module,exports){
    406404/**
    407405 * wp.media.model.Attachments
    408406 *
     
    726724                // checking if we're still mirroring that collection when
    727725                // the request resolves.
    728726                mirroring.more( options ).done( function() {
    729                         if ( this === attachments.mirroring )
     727                        if ( this === attachments.mirroring ) {
    730728                                deferred.resolveWith( this );
     729                        }
    731730                });
    732731
    733732                return deferred.promise();
     
    936935});
    937936
    938937module.exports = Attachments;
    939 },{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){
    940 /*globals jQuery, Backbone */
    941938
     939},{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){
    942940/**
    943941 * wp.media.model.PostImage
    944942 *
     
    10931091});
    10941092
    10951093module.exports = PostImage;
    1096 },{"./attachment":2}],5:[function(require,module,exports){
    1097 /*globals jQuery, _, wp */
    10981094
     1095},{"./attachment":2}],5:[function(require,module,exports){
    10991096/**
    11001097 * wp.media.model.Query
    11011098 *
     
    14021399});
    14031400
    14041401module.exports = Query;
    1405 },{"./attachments.js":3}],6:[function(require,module,exports){
    1406 /*globals _ */
    14071402
     1403},{"./attachments.js":3}],6:[function(require,module,exports){
    14081404/**
    14091405 * wp.media.model.Selection
    14101406 *
     
    15001496});
    15011497
    15021498module.exports = Selection;
     1499
    15031500},{"./attachments.js":3}]},{},[1]);
  • src/wp-includes/js/media/models.manifest.js

     
    229229                window.wp = null;
    230230        });
    231231
    232 }(jQuery));
    233  No newline at end of file
     232}(jQuery));
  • src/wp-includes/js/media/routers/manage.js

     
    1 /*globals jQuery, Backbone */
    2 
    31/**
    42 * A router for handling the browser history and application state.
    53 *
     
    4341        }
    4442});
    4543
    46 module.exports = Router;
    47  No newline at end of file
     44module.exports = Router;
  • src/wp-includes/js/media/utils/selection-sync.js

     
    1 /*globals _ */
    2 
    31/**
    42 * wp.media.selectionSync
    53 *
     
    6361        }
    6462};
    6563
    66 module.exports = selectionSync;
    67  No newline at end of file
     64module.exports = selectionSync;
  • src/wp-includes/js/media/views/attachment/details-two-column.js

     
    1 /*globals wp */
    2 
    31/**
    42 * A similar view to media.view.Attachment.Details
    53 * for use in the Edit Attachment modal.
     
    3432                wp.media.mixin.removeAllPlayers();
    3533                this.$( 'audio, video' ).each( function (i, elem) {
    3634                        var el = MediaDetails.prepareSrc( elem );
    37                         new MediaElementPlayer( el, wp.media.mixin.mejsSettings );
     35                        new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings );
    3836                } );
    3937        }
    4038});
    4139
    42 module.exports = TwoColumn;
    43  No newline at end of file
     40module.exports = TwoColumn;
  • src/wp-includes/js/media/views/attachment/details.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.Attachment.Details
    53 *
     
    5957        deleteAttachment: function( event ) {
    6058                event.preventDefault();
    6159
    62                 if ( confirm( l10n.warnDelete ) ) {
     60                if ( window.confirm( l10n.warnDelete ) ) {
    6361                        this.model.destroy();
    6462                        // Keep focus inside media modal
    6563                        // after image is deleted
     
    137135        }
    138136});
    139137
    140 module.exports = Details;
    141  No newline at end of file
     138module.exports = Details;
  • src/wp-includes/js/media/views/attachment/edit-library.js

     
    1616        }
    1717});
    1818
    19 module.exports = EditLibrary;
    20  No newline at end of file
     19module.exports = EditLibrary;
  • src/wp-includes/js/media/views/attachment/edit-selection.js

     
    1717        }
    1818});
    1919
    20 module.exports = EditSelection;
    21  No newline at end of file
     20module.exports = EditSelection;
  • src/wp-includes/js/media/views/attachment/library.js

     
    1616        }
    1717});
    1818
    19 module.exports = Library;
    20  No newline at end of file
     19module.exports = Library;
  • src/wp-includes/js/media/views/attachment/selection.js

     
    2020        }
    2121});
    2222
    23 module.exports = Selection;
    24  No newline at end of file
     23module.exports = Selection;
  • src/wp-includes/js/media/views/attachment-compat.js

     
    1 /*globals _ */
    2 
    31/**
    42 * wp.media.view.AttachmentCompat
    53 *
     
    8280        }
    8381});
    8482
    85 module.exports = AttachmentCompat;
    86  No newline at end of file
     83module.exports = AttachmentCompat;
  • src/wp-includes/js/media/views/attachment-filters/all.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.AttachmentFilters.All
    53 *
     
    8886        }
    8987});
    9088
    91 module.exports = All;
    92  No newline at end of file
     89module.exports = All;
  • src/wp-includes/js/media/views/attachment-filters/date.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * A filter dropdown for month/dates.
    53 *
     
    3937        }
    4038});
    4139
    42 module.exports = DateFilter;
    43  No newline at end of file
     40module.exports = DateFilter;
  • src/wp-includes/js/media/views/attachment-filters/uploaded.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.AttachmentFilters.Uploaded
    53 *
     
    5755        }
    5856});
    5957
    60 module.exports = Uploaded;
    61  No newline at end of file
     58module.exports = Uploaded;
  • src/wp-includes/js/media/views/attachment-filters.js

     
    1 /*globals _, jQuery */
    2 
    31/**
    42 * wp.media.view.AttachmentFilters
    53 *
     
    7573        }
    7674});
    7775
    78 module.exports = AttachmentFilters;
    79  No newline at end of file
     76module.exports = AttachmentFilters;
  • src/wp-includes/js/media/views/attachment.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.Attachment
    53 *
     
    551549        };
    552550});
    553551
    554 module.exports = Attachment;
    555  No newline at end of file
     552module.exports = Attachment;
  • src/wp-includes/js/media/views/attachments/browser.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.AttachmentsBrowser
    53 *
     
    190188                                                return;
    191189                                        }
    192190
    193                                         if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {
     191                                        if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) {
    194192                                                return;
    195193                                        }
    196194
    197195                                        if ( mediaTrash &&
    198196                                                'trash' !== selection.at( 0 ).get( 'status' ) &&
    199                                                 ! confirm( l10n.warnBulkTrash ) ) {
     197                                                ! window.confirm( l10n.warnBulkTrash ) ) {
    200198
    201199                                                return;
    202200                                        }
     
    244242                                        click: function() {
    245243                                                var removed = [], selection = this.controller.state().get( 'selection' );
    246244
    247                                                 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
     245                                                if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) {
    248246                                                        return;
    249247                                                }
    250248
     
    456454        }
    457455});
    458456
    459 module.exports = AttachmentsBrowser;
    460  No newline at end of file
     457module.exports = AttachmentsBrowser;
  • src/wp-includes/js/media/views/attachments/selection.js

     
    1 /*globals _ */
    2 
    31/**
    42 * wp.media.view.Attachments.Selection
    53 *
     
    2826        }
    2927});
    3028
    31 module.exports = Selection;
    32  No newline at end of file
     29module.exports = Selection;
  • src/wp-includes/js/media/views/attachments.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.Attachments
    53 *
     
    272270
    273271                // The scroll event occurs on the document, but the element
    274272                // that should be checked is the document body.
    275                 if ( el == document ) {
     273                if ( el === document ) {
    276274                        el = document.body;
    277275                        scrollTop = $(document).scrollTop();
    278276                }
     
    297295        }
    298296});
    299297
    300 module.exports = Attachments;
    301  No newline at end of file
     298module.exports = Attachments;
  • src/wp-includes/js/media/views/audio-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.AudioDetails
    53 *
     
    3533        }
    3634});
    3735
    38 module.exports = AudioDetails;
    39  No newline at end of file
     36module.exports = AudioDetails;
  • src/wp-includes/js/media/views/button/delete-selected-permanently.js

     
    4040        }
    4141});
    4242
    43 module.exports = DeleteSelectedPermanently;
    44  No newline at end of file
     43module.exports = DeleteSelectedPermanently;
  • src/wp-includes/js/media/views/button/delete-selected.js

     
    1 /*globals wp */
    2 
    31/**
    42 * A button that handles bulk Delete/Trash logic
    53 *
     
    4846        }
    4947});
    5048
    51 module.exports = DeleteSelected;
    52  No newline at end of file
     49module.exports = DeleteSelected;
  • src/wp-includes/js/media/views/button/select-mode-toggle.js

     
    1 /*globals wp */
    2 
    31var Button = require( '../button.js' ),
    42        l10n = wp.media.view.l10n,
    53        SelectModeToggle;
     
    5250        }
    5351});
    5452
    55 module.exports = SelectModeToggle;
    56  No newline at end of file
     53module.exports = SelectModeToggle;
  • src/wp-includes/js/media/views/button-group.js

     
    1 /*globals _, Backbone, jQuery */
    2 
    31/**
    42 * wp.media.view.ButtonGroup
    53 *
     
    4543        }
    4644});
    4745
    48 module.exports = ButtonGroup;
    49  No newline at end of file
     46module.exports = ButtonGroup;
  • src/wp-includes/js/media/views/button.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.view.Button
    53 *
     
    8684        }
    8785});
    8886
    89 module.exports = Button;
    90  No newline at end of file
     87module.exports = Button;
  • src/wp-includes/js/media/views/cropper.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.Cropper
    53 *
     
    6058
    6159                this.views.add( '.upload-errors', new UploaderStatusError({
    6260                        filename: UploaderStatus.prototype.filename(filename),
    63                         message: _wpMediaViewsL10n.cropError
     61                        message: window._wpMediaViewsL10n.cropError
    6462                }), { at: 0 });
    6563        }
    6664});
    6765
    68 module.exports = Cropper;
    69  No newline at end of file
     66module.exports = Cropper;
  • src/wp-includes/js/media/views/edit-image-details.js

     
    2121        }
    2222});
    2323
    24 module.exports = Details;
    25  No newline at end of file
     24module.exports = Details;
  • src/wp-includes/js/media/views/edit-image.js

     
    1 /*globals _, wp */
    2 
    31var View = require( './view.js' ),
    42        EditImage;
    53
     
    5048
    5149});
    5250
    53 module.exports = EditImage;
    54  No newline at end of file
     51module.exports = EditImage;
  • src/wp-includes/js/media/views/embed/image.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.EmbedImage
    53 *
     
    3028        }
    3129});
    3230
    33 module.exports = EmbedImage;
    34  No newline at end of file
     31module.exports = EmbedImage;
  • src/wp-includes/js/media/views/embed/link.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.EmbedLink
    53 *
     
    6462        }
    6563});
    6664
    67 module.exports = EmbedLink;
    68  No newline at end of file
     65module.exports = EmbedLink;
  • src/wp-includes/js/media/views/embed/url.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.EmbedUrl
    53 *
     
    7674        }
    7775});
    7876
    79 module.exports = EmbedUrl;
    80  No newline at end of file
     77module.exports = EmbedUrl;
  • src/wp-includes/js/media/views/embed.js

     
    6565        }
    6666});
    6767
    68 module.exports = Embed;
    69  No newline at end of file
     68module.exports = Embed;
  • src/wp-includes/js/media/views/focus-manager.js

     
    4444
    4545});
    4646
    47 module.exports = FocusManager;
    48  No newline at end of file
     47module.exports = FocusManager;
  • src/wp-includes/js/media/views/frame/audio-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.AudioDetails
    53 *
     
    7472        }
    7573});
    7674
    77 module.exports = AudioDetails;
    78  No newline at end of file
     75module.exports = AudioDetails;
  • src/wp-includes/js/media/views/frame/edit-attachments.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * A frame for editing the details of a specific media item.
    53 *
     
    243241        }
    244242});
    245243
    246 module.exports = EditAttachments;
    247  No newline at end of file
     244module.exports = EditAttachments;
  • src/wp-includes/js/media/views/frame/image-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.ImageDetails
    53 *
     
    180178
    181179});
    182180
    183 module.exports = ImageDetails;
    184  No newline at end of file
     181module.exports = ImageDetails;
  • src/wp-includes/js/media/views/frame/manage.js

     
    1 /*globals _, Backbone, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.MediaFrame.Manage
    53 *
     
    237235                // Verify pushState support and activate
    238236                if ( window.history && window.history.pushState ) {
    239237                        Backbone.history.start( {
    240                                 root: _wpMediaGridSettings.adminUrl,
     238                                root: window._wpMediaGridSettings.adminUrl,
    241239                                pushState: true
    242240                        } );
    243241                }
    244242        }
    245243});
    246244
    247 module.exports = Manage;
    248  No newline at end of file
     245module.exports = Manage;
  • src/wp-includes/js/media/views/frame/media-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.MediaDetails
    53 *
     
    129127        }
    130128});
    131129
    132 module.exports = MediaDetails;
    133  No newline at end of file
     130module.exports = MediaDetails;
  • src/wp-includes/js/media/views/frame/post.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.Post
    53 *
     
    748746        }
    749747});
    750748
    751 module.exports = Post;
    752  No newline at end of file
     749module.exports = Post;
  • src/wp-includes/js/media/views/frame/select.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.Select
    53 *
     
    171169        }
    172170});
    173171
    174 module.exports = Select;
    175  No newline at end of file
     172module.exports = Select;
  • src/wp-includes/js/media/views/frame/video-details.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.MediaFrame.VideoDetails
    53 *
     
    134132        }
    135133});
    136134
    137 module.exports = VideoDetails;
    138  No newline at end of file
     135module.exports = VideoDetails;
  • src/wp-includes/js/media/views/frame.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.view.Frame
    53 *
     
    169167// Make the `Frame` a `StateMachine`.
    170168_.extend( Frame.prototype, StateMachine.prototype );
    171169
    172 module.exports = Frame;
    173  No newline at end of file
     170module.exports = Frame;
  • src/wp-includes/js/media/views/iframe.js

     
    2222        }
    2323});
    2424
    25 module.exports = Iframe;
    26  No newline at end of file
     25module.exports = Iframe;
  • src/wp-includes/js/media/views/image-details.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.ImageDetails
    53 *
     
    7371        postRender: function() {
    7472                setTimeout( _.bind( this.resetFocus, this ), 10 );
    7573                this.toggleLinkSettings();
    76                 if ( getUserSetting( 'advImgDetails' ) === 'show' ) {
     74                if ( window.getUserSetting( 'advImgDetails' ) === 'show' ) {
    7775                        this.toggleAdvanced( true );
    7876                }
    7977                this.trigger( 'post-render' );
     
    146144                        mode = 'show';
    147145                }
    148146
    149                 setUserSetting( 'advImgDetails', mode );
     147                window.setUserSetting( 'advImgDetails', mode );
    150148        },
    151149
    152150        editAttachment: function( event ) {
     
    165163        }
    166164});
    167165
    168 module.exports = AttachmentDisplay;
    169  No newline at end of file
     166module.exports = AttachmentDisplay;
  • src/wp-includes/js/media/views/label.js

     
    2222        }
    2323});
    2424
    25 module.exports = Label;
    26  No newline at end of file
     25module.exports = Label;
  • src/wp-includes/js/media/views/media-details.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.MediaDetails
    53 *
     
    8381         */
    8482        setPlayer : function() {
    8583                if ( ! this.players.length && this.media ) {
    86                         this.players.push( new MediaElementPlayer( this.media, this.settings ) );
     84                        this.players.push( new window.MediaElementPlayer( this.media, this.settings ) );
    8785                }
    8886        },
    8987
     
    111109         */
    112110        render: function() {
    113111                AttachmentDisplay.prototype.render.apply( this, arguments );
    114                
     112
    115113                setTimeout( _.bind( function() {
    116114                        this.resetFocus();
    117115                }, this ), 10 );
     
    149147        }
    150148});
    151149
    152 module.exports = MediaDetails;
    153  No newline at end of file
     150module.exports = MediaDetails;
  • src/wp-includes/js/media/views/media-frame.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.MediaFrame
    53 *
     
    251249        };
    252250});
    253251
    254 module.exports = MediaFrame;
    255  No newline at end of file
     252module.exports = MediaFrame;
  • src/wp-includes/js/media/views/menu-item.js

     
    1 /*globals wp, jQuery */
    2 
    31/**
    42 * wp.media.view.MenuItem
    53 *
     
    7068        }
    7169});
    7270
    73 module.exports = MenuItem;
    74  No newline at end of file
     71module.exports = MenuItem;
  • src/wp-includes/js/media/views/menu.js

     
    112112        }
    113113});
    114114
    115 module.exports = Menu;
    116  No newline at end of file
     115module.exports = Menu;
  • src/wp-includes/js/media/views/modal.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.Modal
    53 *
     
    212210        }
    213211});
    214212
    215 module.exports = Modal;
    216  No newline at end of file
     213module.exports = Modal;
  • src/wp-includes/js/media/views/priority-list.js

     
    1 /*globals _, Backbone */
    2 
    31/**
    42 * wp.media.view.PriorityList
    53 *
     
    9795        }
    9896});
    9997
    100 module.exports = PriorityList;
    101  No newline at end of file
     98module.exports = PriorityList;
  • src/wp-includes/js/media/views/router-item.js

     
    2222        }
    2323});
    2424
    25 module.exports = RouterItem;
    26  No newline at end of file
     25module.exports = RouterItem;
  • src/wp-includes/js/media/views/router.js

     
    3333        }
    3434});
    3535
    36 module.exports = Router;
    37  No newline at end of file
     36module.exports = Router;
  • src/wp-includes/js/media/views/search.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.Search
    53 *
     
    4644        }
    4745});
    4846
    49 module.exports = Search;
    50  No newline at end of file
     47module.exports = Search;
  • src/wp-includes/js/media/views/selection.js

     
    1 /*globals _, Backbone, wp */
    2 
    31/**
    42 * wp.media.view.Selection
    53 *
     
    8280        }
    8381});
    8482
    85 module.exports = Selection;
    86  No newline at end of file
     83module.exports = Selection;
  • src/wp-includes/js/media/views/settings/attachment-display.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.Settings.AttachmentDisplay
    53 *
     
    9189        }
    9290});
    9391
    94 module.exports = AttachmentDisplay;
    95  No newline at end of file
     92module.exports = AttachmentDisplay;
  • src/wp-includes/js/media/views/settings/gallery.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.Settings.Gallery
    53 *
     
    1715        template:  wp.template('gallery-settings')
    1816});
    1917
    20 module.exports = Gallery;
    21  No newline at end of file
     18module.exports = Gallery;
  • src/wp-includes/js/media/views/settings/playlist.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.Settings.Playlist
    53 *
     
    1715        template:  wp.template('playlist-settings')
    1816});
    1917
    20 module.exports = Playlist;
    21  No newline at end of file
     18module.exports = Playlist;
  • src/wp-includes/js/media/views/settings.js

     
    1 /*globals _, Backbone, jQuery */
    2 
    31/**
    42 * wp.media.view.Settings
    53 *
     
    107105                // If the setting has a corresponding user setting,
    108106                // update that as well.
    109107                if ( userSetting = $setting.data('userSetting') ) {
    110                         setUserSetting( userSetting, value );
     108                        window.setUserSetting( userSetting, value );
    111109                }
    112110        },
    113111
     
    118116        }
    119117});
    120118
    121 module.exports = Settings;
    122  No newline at end of file
     119module.exports = Settings;
  • src/wp-includes/js/media/views/sidebar.js

     
    1414        className: 'media-sidebar'
    1515});
    1616
    17 module.exports = Sidebar;
    18  No newline at end of file
     17module.exports = Sidebar;
  • src/wp-includes/js/media/views/spinner.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.Spinner
    53 *
     
    3533        }
    3634});
    3735
    38 module.exports = Spinner;
    39  No newline at end of file
     36module.exports = Spinner;
  • src/wp-includes/js/media/views/toolbar/embed.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.Toolbar.Embed
    53 *
     
    3432        }
    3533});
    3634
    37 module.exports = Embed;
    38  No newline at end of file
     35module.exports = Embed;
  • src/wp-includes/js/media/views/toolbar/select.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.Toolbar.Select
    53 *
     
    6765        }
    6866});
    6967
    70 module.exports = Select;
    71  No newline at end of file
     68module.exports = Select;
  • src/wp-includes/js/media/views/toolbar.js

     
    1 /*globals Backbone, _ */
    2 
    31/**
    42 * wp.media.view.Toolbar
    53 *
     
    159157        }
    160158});
    161159
    162 module.exports = Toolbar;
    163  No newline at end of file
     160module.exports = Toolbar;
  • src/wp-includes/js/media/views/uploader/editor.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap
    53 * or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow.
     
    216214        }
    217215});
    218216
    219 module.exports = EditorUploader;
    220  No newline at end of file
     217module.exports = EditorUploader;
  • src/wp-includes/js/media/views/uploader/inline.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.UploaderInline
    53 *
     
    129127
    130128});
    131129
    132 module.exports = UploaderInline;
    133  No newline at end of file
     130module.exports = UploaderInline;
  • src/wp-includes/js/media/views/uploader/status-error.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.UploaderStatusError
    53 *
     
    1614        template:  wp.template('uploader-status-error')
    1715});
    1816
    19 module.exports = UploaderStatusError;
    20  No newline at end of file
     17module.exports = UploaderStatusError;
  • src/wp-includes/js/media/views/uploader/status.js

     
    1 /*globals _, wp */
    2 
    31/**
    42 * wp.media.view.UploaderStatus
    53 *
     
    136134        }
    137135});
    138136
    139 module.exports = UploaderStatus;
    140  No newline at end of file
     137module.exports = UploaderStatus;
  • src/wp-includes/js/media/views/uploader/window.js

     
    1 /*globals _, wp, jQuery */
    2 
    31/**
    42 * wp.media.view.UploaderWindow
    53 *
     
    109107        }
    110108});
    111109
    112 module.exports = UploaderWindow;
    113  No newline at end of file
     110module.exports = UploaderWindow;
  • src/wp-includes/js/media/views/video-details.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.view.VideoDetails
    53 *
     
    4038        }
    4139});
    4240
    43 module.exports = VideoDetails;
    44  No newline at end of file
     41module.exports = VideoDetails;
  • src/wp-includes/js/media/views/view.js

     
    1 /*globals wp */
    2 
    31/**
    42 * wp.media.View
    53 *
     
    6361        }
    6462});
    6563
    66 module.exports = View;
    67  No newline at end of file
     64module.exports = View;
  • src/wp-includes/js/media/views.js

     
    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){
    2 /*globals _, wp */
    3 
    42/**
    53 * wp.media.controller.CollectionAdd
    64 *
     
    10098});
    10199
    102100module.exports = CollectionAdd;
    103 },{"./library.js":10}],2:[function(require,module,exports){
    104 /*globals wp, jQuery, Backbone */
    105101
     102},{"./library.js":10}],2:[function(require,module,exports){
    106103/**
    107104 * wp.media.controller.CollectionEdit
    108105 *
     
    263260});
    264261
    265262module.exports = CollectionEdit;
    266 },{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){
    267 /*globals _, wp, Backbone */
    268263
     264},{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){
    269265/**
    270266 * wp.media.controller.Cropper
    271267 *
     
    341337
    342338                                                this.$el.text(l10n.cropping);
    343339                                                this.$el.attr('disabled', true);
    344                                                
     340
    345341                                                controller.state().doCrop( selection ).done( function( croppedImage ) {
    346342                                                        controller.trigger('cropped', croppedImage );
    347343                                                        controller.close();
     
    383379});
    384380
    385381module.exports = Cropper;
    386 },{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){
    387 /*globals _, wp */
    388382
     383},{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){
    389384/**
    390385 * wp.media.controller.EditImage
    391386 *
     
    462457});
    463458
    464459module.exports = EditImage;
    465 },{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
    466 /*globals _, wp, jQuery, Backbone */
    467460
     461},{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
    468462/**
    469463 * wp.media.controller.Embed
    470464 *
     
    600594});
    601595
    602596module.exports = Embed;
    603 },{"./state.js":15}],6:[function(require,module,exports){
    604 /*globals _, wp */
    605597
     598},{"./state.js":15}],6:[function(require,module,exports){
    606599/**
    607600 * wp.media.controller.FeaturedImage
    608601 *
     
    723716});
    724717
    725718module.exports = FeaturedImage;
    726 },{"./library.js":10}],7:[function(require,module,exports){
    727 /*globals _, wp */
    728719
     720},{"./library.js":10}],7:[function(require,module,exports){
    729721/**
    730722 * A state for selecting more images to add to a gallery.
    731723 *
     
    777769         */
    778770        initialize: function() {
    779771                // If a library wasn't supplied, create a library of images.
    780                 if ( ! this.get('library') )
     772                if ( ! this.get('library') ) {
    781773                        this.set( 'library', wp.media.query({ type: 'image' }) );
     774                }
    782775
    783776                Library.prototype.initialize.apply( this, arguments );
    784777        },
     
    790783                var library = this.get('library'),
    791784                        edit    = this.frame.state('gallery-edit').get('library');
    792785
    793                 if ( this.editLibrary && this.editLibrary !== edit )
     786                if ( this.editLibrary && this.editLibrary !== edit ) {
    794787                        library.unobserve( this.editLibrary );
     788                }
    795789
    796790                // Accepts attachments that exist in the original library and
    797791                // that do not exist in gallery's library.
     
    811805});
    812806
    813807module.exports = GalleryAdd;
    814 },{"./library.js":10}],8:[function(require,module,exports){
    815 /*globals wp, Backbone */
    816808
     809},{"./library.js":10}],8:[function(require,module,exports){
    817810/**
    818811 * wp.media.controller.GalleryEdit
    819812 *
     
    875868         */
    876869        initialize: function() {
    877870                // If we haven't been provided a `library`, create a `Selection`.
    878                 if ( ! this.get('library') )
     871                if ( ! this.get('library') ) {
    879872                        this.set( 'library', new wp.media.model.Selection() );
     873                }
    880874
    881875                // The single `Attachment` view to be used in the `Attachments` view.
    882                 if ( ! this.get('AttachmentView') )
     876                if ( ! this.get('AttachmentView') ) {
    883877                        this.set( 'AttachmentView', EditLibraryView );
     878                }
     879
    884880                Library.prototype.initialize.apply( this, arguments );
    885881        },
    886882
     
    951947});
    952948
    953949module.exports = GalleryEdit;
    954 },{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){
    955 /*globals _, wp */
    956950
     951},{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){
    957952/**
    958953 * wp.media.controller.ImageDetails
    959954 *
     
    10141009});
    10151010
    10161011module.exports = ImageDetails;
     1012
    10171013},{"./library.js":10,"./state.js":15}],10:[function(require,module,exports){
    1018 /*globals _, wp, Backbone, getUserSetting, setUserSetting */
     1014/* globals getUserSetting, setUserSetting */
    10191015
    10201016/**
    10211017 * wp.media.controller.Library
     
    10881084                        this.set( 'library', wp.media.query() );
    10891085                }
    10901086
    1091                 if ( ! (selection instanceof Selection) ) {
     1087                if ( ! ( selection instanceof wp.media.model.Selection ) ) {
    10921088                        props = selection;
    10931089
    10941090                        if ( ! props ) {
     
    12871283_.extend( Library.prototype, selectionSync );
    12881284
    12891285module.exports = Library;
    1290 },{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){
    1291 /*globals _, wp */
    12921286
     1287},{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){
    12931288/**
    12941289 * wp.media.controller.MediaLibrary
    12951290 *
     
    13381333});
    13391334
    13401335module.exports = MediaLibrary;
    1341 },{"./library.js":10}],12:[function(require,module,exports){
    1342 /*globals _, Backbone */
    13431336
     1337},{"./library.js":10}],12:[function(require,module,exports){
    13441338/**
    13451339 * wp.media.controller.Region
    13461340 *
     
    15181512});
    15191513
    15201514module.exports = Region;
    1521 },{}],13:[function(require,module,exports){
    1522 /*globals _, wp */
    15231515
     1516},{}],13:[function(require,module,exports){
    15241517/**
    15251518 * wp.media.controller.ReplaceImage
    15261519 *
     
    16271620});
    16281621
    16291622module.exports = ReplaceImage;
    1630 },{"./library.js":10}],14:[function(require,module,exports){
    1631 /*globals _, Backbone */
    16321623
     1624},{"./library.js":10}],14:[function(require,module,exports){
    16331625/**
    16341626 * wp.media.controller.StateMachine
    16351627 *
     
    17521744});
    17531745
    17541746module.exports = StateMachine;
    1755 },{}],15:[function(require,module,exports){
    1756 /*globals _, Backbone */
    17571747
     1748},{}],15:[function(require,module,exports){
    17581749/**
    17591750 * wp.media.controller.State
    17601751 *
     
    19941985});
    19951986
    19961987module.exports = State;
    1997 },{}],16:[function(require,module,exports){
    1998 /*globals _ */
    19991988
     1989},{}],16:[function(require,module,exports){
    20001990/**
    20011991 * wp.media.selectionSync
    20021992 *
     
    20612051};
    20622052
    20632053module.exports = selectionSync;
     2054
    20642055},{}],17:[function(require,module,exports){
    2065 /* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
     2056/* global _wpMediaViewsL10n */
    20662057( function( $, _ ) {
    20672058        var l10n,
    20682059                media = wp.media;
     
    22112202
    22122203}(jQuery, _));
    22132204},{"./controllers/collection-add.js":1,"./controllers/collection-edit.js":2,"./controllers/cropper.js":3,"./controllers/edit-image.js":4,"./controllers/embed.js":5,"./controllers/featured-image.js":6,"./controllers/gallery-add.js":7,"./controllers/gallery-edit.js":8,"./controllers/image-details.js":9,"./controllers/library.js":10,"./controllers/media-library.js":11,"./controllers/region.js":12,"./controllers/replace-image.js":13,"./controllers/state-machine.js":14,"./controllers/state.js":15,"./utils/selection-sync.js":16,"./views/attachment-compat.js":18,"./views/attachment-filters.js":19,"./views/attachment-filters/all.js":20,"./views/attachment-filters/date.js":21,"./views/attachment-filters/uploaded.js":22,"./views/attachment.js":23,"./views/attachment/details.js":24,"./views/attachment/edit-library.js":25,"./views/attachment/edit-selection.js":26,"./views/attachment/library.js":27,"./views/attachment/selection.js":28,"./views/attachments.js":29,"./views/attachments/browser.js":30,"./views/attachments/selection.js":31,"./views/button-group.js":32,"./views/button.js":33,"./views/cropper.js":34,"./views/edit-image.js":35,"./views/embed.js":36,"./views/embed/image.js":37,"./views/embed/link.js":38,"./views/embed/url.js":39,"./views/focus-manager.js":40,"./views/frame/image-details.js":42,"./views/frame/post.js":43,"./views/frame/select.js":44,"./views/iframe.js":45,"./views/image-details.js":46,"./views/label.js":47,"./views/media-frame.js":48,"./views/menu-item.js":49,"./views/menu.js":50,"./views/modal.js":51,"./views/priority-list.js":52,"./views/router-item.js":53,"./views/router.js":54,"./views/search.js":55,"./views/selection.js":56,"./views/settings.js":57,"./views/settings/attachment-display.js":58,"./views/settings/gallery.js":59,"./views/settings/playlist.js":60,"./views/sidebar.js":61,"./views/spinner.js":62,"./views/toolbar.js":63,"./views/toolbar/embed.js":64,"./views/toolbar/select.js":65,"./views/uploader/editor.js":66,"./views/uploader/inline.js":67,"./views/uploader/status-error.js":68,"./views/uploader/status.js":69,"./views/uploader/window.js":70,"./views/view.js":71}],18:[function(require,module,exports){
    2214 /*globals _ */
    2215 
    22162205/**
    22172206 * wp.media.view.AttachmentCompat
    22182207 *
     
    22962285});
    22972286
    22982287module.exports = AttachmentCompat;
    2299 },{"./view.js":71}],19:[function(require,module,exports){
    2300 /*globals _, jQuery */
    23012288
     2289},{"./view.js":71}],19:[function(require,module,exports){
    23022290/**
    23032291 * wp.media.view.AttachmentFilters
    23042292 *
     
    23752363});
    23762364
    23772365module.exports = AttachmentFilters;
    2378 },{"./view.js":71}],20:[function(require,module,exports){
    2379 /*globals _, wp */
    23802366
     2367},{"./view.js":71}],20:[function(require,module,exports){
    23812368/**
    23822369 * wp.media.view.AttachmentFilters.All
    23832370 *
     
    24672454});
    24682455
    24692456module.exports = All;
    2470 },{"../attachment-filters.js":19}],21:[function(require,module,exports){
    2471 /*globals _, wp */
    24722457
     2458},{"../attachment-filters.js":19}],21:[function(require,module,exports){
    24732459/**
    24742460 * A filter dropdown for month/dates.
    24752461 *
     
    25102496});
    25112497
    25122498module.exports = DateFilter;
    2513 },{"../attachment-filters.js":19}],22:[function(require,module,exports){
    2514 /*globals wp */
    25152499
     2500},{"../attachment-filters.js":19}],22:[function(require,module,exports){
    25162501/**
    25172502 * wp.media.view.AttachmentFilters.Uploaded
    25182503 *
     
    25712556});
    25722557
    25732558module.exports = Uploaded;
    2574 },{"../attachment-filters.js":19}],23:[function(require,module,exports){
    2575 /*globals _, wp, jQuery */
    25762559
     2560},{"../attachment-filters.js":19}],23:[function(require,module,exports){
    25772561/**
    25782562 * wp.media.view.Attachment
    25792563 *
     
    31263110});
    31273111
    31283112module.exports = Attachment;
    3129 },{"./view.js":71}],24:[function(require,module,exports){
    3130 /*globals _, wp */
    31313113
     3114},{"./view.js":71}],24:[function(require,module,exports){
    31323115/**
    31333116 * wp.media.view.Attachment.Details
    31343117 *
     
    31883171        deleteAttachment: function( event ) {
    31893172                event.preventDefault();
    31903173
    3191                 if ( confirm( l10n.warnDelete ) ) {
     3174                if ( window.confirm( l10n.warnDelete ) ) {
    31923175                        this.model.destroy();
    31933176                        // Keep focus inside media modal
    31943177                        // after image is deleted
     
    32673250});
    32683251
    32693252module.exports = Details;
     3253
    32703254},{"../attachment.js":23}],25:[function(require,module,exports){
    32713255/**
    32723256 * wp.media.view.Attachment.EditLibrary
     
    32873271});
    32883272
    32893273module.exports = EditLibrary;
     3274
    32903275},{"../attachment.js":23}],26:[function(require,module,exports){
    32913276/**
    32923277 * wp.media.view.Attachments.EditSelection
     
    33083293});
    33093294
    33103295module.exports = EditSelection;
     3296
    33113297},{"./selection.js":28}],27:[function(require,module,exports){
    33123298/**
    33133299 * wp.media.view.Attachment.Library
     
    33283314});
    33293315
    33303316module.exports = Library;
     3317
    33313318},{"../attachment.js":23}],28:[function(require,module,exports){
    33323319/**
    33333320 * wp.media.view.Attachment.Selection
     
    33523339});
    33533340
    33543341module.exports = Selection;
    3355 },{"../attachment.js":23}],29:[function(require,module,exports){
    3356 /*globals _, wp, jQuery */
    33573342
     3343},{"../attachment.js":23}],29:[function(require,module,exports){
    33583344/**
    33593345 * wp.media.view.Attachments
    33603346 *
     
    36273613
    36283614                // The scroll event occurs on the document, but the element
    36293615                // that should be checked is the document body.
    3630                 if ( el == document ) {
     3616                if ( el === document ) {
    36313617                        el = document.body;
    36323618                        scrollTop = $(document).scrollTop();
    36333619                }
     
    36533639});
    36543640
    36553641module.exports = Attachments;
    3656 },{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){
    3657 /*globals _, wp, jQuery */
    36583642
     3643},{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){
    36593644/**
    36603645 * wp.media.view.AttachmentsBrowser
    36613646 *
     
    38463831                                                return;
    38473832                                        }
    38483833
    3849                                         if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {
     3834                                        if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) {
    38503835                                                return;
    38513836                                        }
    38523837
    38533838                                        if ( mediaTrash &&
    38543839                                                'trash' !== selection.at( 0 ).get( 'status' ) &&
    3855                                                 ! confirm( l10n.warnBulkTrash ) ) {
     3840                                                ! window.confirm( l10n.warnBulkTrash ) ) {
    38563841
    38573842                                                return;
    38583843                                        }
     
    39003885                                        click: function() {
    39013886                                                var removed = [], selection = this.controller.state().get( 'selection' );
    39023887
    3903                                                 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {
     3888                                                if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) {
    39043889                                                        return;
    39053890                                                }
    39063891
     
    41134098});
    41144099
    41154100module.exports = AttachmentsBrowser;
    4116 },{"../attachment-compat.js":18,"../attachment-filters/all.js":20,"../attachment-filters/date.js":21,"../attachment-filters/uploaded.js":22,"../attachment/details.js":24,"../attachment/library.js":27,"../attachments.js":29,"../label.js":47,"../search.js":55,"../settings/attachment-display.js":58,"../sidebar.js":61,"../spinner.js":62,"../toolbar.js":63,"../uploader/inline.js":67,"../uploader/status.js":69,"../view.js":71}],31:[function(require,module,exports){
    4117 /*globals _ */
    41184101
     4102},{"../attachment-compat.js":18,"../attachment-filters/all.js":20,"../attachment-filters/date.js":21,"../attachment-filters/uploaded.js":22,"../attachment/details.js":24,"../attachment/library.js":27,"../attachments.js":29,"../label.js":47,"../search.js":55,"../settings/attachment-display.js":58,"../sidebar.js":61,"../spinner.js":62,"../toolbar.js":63,"../uploader/inline.js":67,"../uploader/status.js":69,"../view.js":71}],31:[function(require,module,exports){
    41194103/**
    41204104 * wp.media.view.Attachments.Selection
    41214105 *
     
    41454129});
    41464130
    41474131module.exports = Selection;
    4148 },{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
    4149 /*globals _, Backbone, jQuery */
    41504132
     4133},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
    41514134/**
    41524135 * wp.media.view.ButtonGroup
    41534136 *
     
    41944177});
    41954178
    41964179module.exports = ButtonGroup;
    4197 },{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){
    4198 /*globals _, Backbone */
    41994180
     4181},{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){
    42004182/**
    42014183 * wp.media.view.Button
    42024184 *
     
    42844266});
    42854267
    42864268module.exports = Button;
    4287 },{"./view.js":71}],34:[function(require,module,exports){
    4288 /*globals _, wp, jQuery */
    42894269
     4270},{"./view.js":71}],34:[function(require,module,exports){
    42904271/**
    42914272 * wp.media.view.Cropper
    42924273 *
     
    43474328
    43484329                this.views.add( '.upload-errors', new UploaderStatusError({
    43494330                        filename: UploaderStatus.prototype.filename(filename),
    4350                         message: _wpMediaViewsL10n.cropError
     4331                        message: window._wpMediaViewsL10n.cropError
    43514332                }), { at: 0 });
    43524333        }
    43534334});
    43544335
    43554336module.exports = Cropper;
    4356 },{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){
    4357 /*globals _, wp */
    43584337
     4338},{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){
    43594339var View = require( './view.js' ),
    43604340        EditImage;
    43614341
     
    44074387});
    44084388
    44094389module.exports = EditImage;
     4390
    44104391},{"./view.js":71}],36:[function(require,module,exports){
    44114392/**
    44124393 * wp.media.view.Embed
     
    44764457});
    44774458
    44784459module.exports = Embed;
    4479 },{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){
    4480 /*globals wp */
    44814460
     4461},{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){
    44824462/**
    44834463 * wp.media.view.EmbedImage
    44844464 *
     
    45104490});
    45114491
    45124492module.exports = EmbedImage;
    4513 },{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
    4514 /*globals _, wp, jQuery */
    45154493
     4494},{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
    45164495/**
    45174496 * wp.media.view.EmbedLink
    45184497 *
     
    45784557});
    45794558
    45804559module.exports = EmbedLink;
    4581 },{"../settings.js":57}],39:[function(require,module,exports){
    4582 /*globals _, wp, jQuery */
    45834560
     4561},{"../settings.js":57}],39:[function(require,module,exports){
    45844562/**
    45854563 * wp.media.view.EmbedUrl
    45864564 *
     
    46584636});
    46594637
    46604638module.exports = EmbedUrl;
     4639
    46614640},{"../view.js":71}],40:[function(require,module,exports){
    46624641/**
    46634642 * wp.media.view.FocusManager
     
    47064685});
    47074686
    47084687module.exports = FocusManager;
    4709 },{"./view.js":71}],41:[function(require,module,exports){
    4710 /*globals _, Backbone */
    47114688
     4689},{"./view.js":71}],41:[function(require,module,exports){
    47124690/**
    47134691 * wp.media.view.Frame
    47144692 *
     
    48794857_.extend( Frame.prototype, StateMachine.prototype );
    48804858
    48814859module.exports = Frame;
    4882 },{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){
    4883 /*globals wp */
    48844860
     4861},{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){
    48854862/**
    48864863 * wp.media.view.MediaFrame.ImageDetails
    48874864 *
     
    50635040});
    50645041
    50655042module.exports = ImageDetails;
    5066 },{"../../controllers/edit-image.js":4,"../../controllers/image-details.js":9,"../../controllers/replace-image.js":13,"../edit-image.js":35,"../image-details.js":46,"../toolbar.js":63,"./select.js":44}],43:[function(require,module,exports){
    5067 /*globals _, wp */
    50685043
     5044},{"../../controllers/edit-image.js":4,"../../controllers/image-details.js":9,"../../controllers/replace-image.js":13,"../edit-image.js":35,"../image-details.js":46,"../toolbar.js":63,"./select.js":44}],43:[function(require,module,exports){
    50695045/**
    50705046 * wp.media.view.MediaFrame.Post
    50715047 *
     
    58155791});
    58165792
    58175793module.exports = Post;
    5818 },{"../../controllers/collection-add.js":1,"../../controllers/collection-edit.js":2,"../../controllers/edit-image.js":4,"../../controllers/embed.js":5,"../../controllers/featured-image.js":6,"../../controllers/gallery-add.js":7,"../../controllers/gallery-edit.js":8,"../../controllers/library.js":10,"../attachment/edit-selection.js":26,"../attachments/browser.js":30,"../edit-image.js":35,"../embed.js":36,"../selection.js":56,"../settings/playlist.js":60,"../toolbar.js":63,"../toolbar/embed.js":64,"../view.js":71,"./select.js":44}],44:[function(require,module,exports){
    5819 /*globals _, wp */
    58205794
     5795},{"../../controllers/collection-add.js":1,"../../controllers/collection-edit.js":2,"../../controllers/edit-image.js":4,"../../controllers/embed.js":5,"../../controllers/featured-image.js":6,"../../controllers/gallery-add.js":7,"../../controllers/gallery-edit.js":8,"../../controllers/library.js":10,"../attachment/edit-selection.js":26,"../attachments/browser.js":30,"../edit-image.js":35,"../embed.js":36,"../selection.js":56,"../settings/playlist.js":60,"../toolbar.js":63,"../toolbar/embed.js":64,"../view.js":71,"./select.js":44}],44:[function(require,module,exports){
    58215796/**
    58225797 * wp.media.view.MediaFrame.Select
    58235798 *
     
    59905965});
    59915966
    59925967module.exports = Select;
     5968
    59935969},{"../../controllers/library.js":10,"../attachments/browser.js":30,"../media-frame.js":48,"../toolbar/select.js":65,"../uploader/inline.js":67}],45:[function(require,module,exports){
    59945970/**
    59955971 * wp.media.view.Iframe
     
    60165992});
    60175993
    60185994module.exports = Iframe;
    6019 },{"./view.js":71}],46:[function(require,module,exports){
    6020 /*globals _, wp, jQuery */
    60215995
     5996},{"./view.js":71}],46:[function(require,module,exports){
    60225997/**
    60235998 * wp.media.view.ImageDetails
    60245999 *
     
    60926067        postRender: function() {
    60936068                setTimeout( _.bind( this.resetFocus, this ), 10 );
    60946069                this.toggleLinkSettings();
    6095                 if ( getUserSetting( 'advImgDetails' ) === 'show' ) {
     6070                if ( window.getUserSetting( 'advImgDetails' ) === 'show' ) {
    60966071                        this.toggleAdvanced( true );
    60976072                }
    60986073                this.trigger( 'post-render' );
     
    61656140                        mode = 'show';
    61666141                }
    61676142
    6168                 setUserSetting( 'advImgDetails', mode );
     6143                window.setUserSetting( 'advImgDetails', mode );
    61696144        },
    61706145
    61716146        editAttachment: function( event ) {
     
    61856160});
    61866161
    61876162module.exports = AttachmentDisplay;
     6163
    61886164},{"./settings/attachment-display.js":58}],47:[function(require,module,exports){
    61896165/**
    61906166 * @class
     
    62116187});
    62126188
    62136189module.exports = Label;
    6214 },{"./view.js":71}],48:[function(require,module,exports){
    6215 /*globals _, wp, jQuery */
    62166190
     6191},{"./view.js":71}],48:[function(require,module,exports){
    62176192/**
    62186193 * wp.media.view.MediaFrame
    62196194 *
     
    64666441});
    64676442
    64686443module.exports = MediaFrame;
    6469 },{"./frame.js":41,"./iframe.js":45,"./menu.js":50,"./modal.js":51,"./router.js":54,"./toolbar.js":63,"./uploader/window.js":70,"./view.js":71}],49:[function(require,module,exports){
    6470 /*globals wp, jQuery */
    64716444
     6445},{"./frame.js":41,"./iframe.js":45,"./menu.js":50,"./modal.js":51,"./router.js":54,"./toolbar.js":63,"./uploader/window.js":70,"./view.js":71}],49:[function(require,module,exports){
    64726446/**
    64736447 * wp.media.view.MenuItem
    64746448 *
     
    65406514});
    65416515
    65426516module.exports = MenuItem;
     6517
    65436518},{"./view.js":71}],50:[function(require,module,exports){
    65446519/**
    65456520 * wp.media.view.Menu
     
    66566631});
    66576632
    66586633module.exports = Menu;
    6659 },{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
    6660 /*globals _, wp, jQuery */
    66616634
     6635},{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
    66626636/**
    66636637 * wp.media.view.Modal
    66646638 *
     
    68726846});
    68736847
    68746848module.exports = Modal;
    6875 },{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){
    6876 /*globals _, Backbone */
    68776849
     6850},{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){
    68786851/**
    68796852 * wp.media.view.PriorityList
    68806853 *
     
    69736946});
    69746947
    69756948module.exports = PriorityList;
     6949
    69766950},{"./view.js":71}],53:[function(require,module,exports){
    69776951/**
    69786952 * wp.media.view.RouterItem
     
    69996973});
    70006974
    70016975module.exports = RouterItem;
     6976
    70026977},{"./menu-item.js":49}],54:[function(require,module,exports){
    70036978/**
    70046979 * wp.media.view.Router
     
    70367011});
    70377012
    70387013module.exports = Router;
    7039 },{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){
    7040 /*globals wp */
    70417014
     7015},{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){
    70427016/**
    70437017 * wp.media.view.Search
    70447018 *
     
    70867060});
    70877061
    70887062module.exports = Search;
    7089 },{"./view.js":71}],56:[function(require,module,exports){
    7090 /*globals _, Backbone, wp */
    70917063
     7064},{"./view.js":71}],56:[function(require,module,exports){
    70927065/**
    70937066 * wp.media.view.Selection
    70947067 *
     
    71727145});
    71737146
    71747147module.exports = Selection;
    7175 },{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
    7176 /*globals _, Backbone, jQuery */
    71777148
     7149},{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
    71787150/**
    71797151 * wp.media.view.Settings
    71807152 *
     
    72827254                // If the setting has a corresponding user setting,
    72837255                // update that as well.
    72847256                if ( userSetting = $setting.data('userSetting') ) {
    7285                         setUserSetting( userSetting, value );
     7257                        window.setUserSetting( userSetting, value );
    72867258                }
    72877259        },
    72887260
     
    72947266});
    72957267
    72967268module.exports = Settings;
    7297 },{"./view.js":71}],58:[function(require,module,exports){
    7298 /*globals _, wp */
    72997269
     7270},{"./view.js":71}],58:[function(require,module,exports){
    73007271/**
    73017272 * wp.media.view.Settings.AttachmentDisplay
    73027273 *
     
    73897360});
    73907361
    73917362module.exports = AttachmentDisplay;
    7392 },{"../settings.js":57}],59:[function(require,module,exports){
    7393 /*globals wp */
    73947363
     7364},{"../settings.js":57}],59:[function(require,module,exports){
    73957365/**
    73967366 * wp.media.view.Settings.Gallery
    73977367 *
     
    74107380});
    74117381
    74127382module.exports = Gallery;
    7413 },{"../settings.js":57}],60:[function(require,module,exports){
    7414 /*globals wp */
    74157383
     7384},{"../settings.js":57}],60:[function(require,module,exports){
    74167385/**
    74177386 * wp.media.view.Settings.Playlist
    74187387 *
     
    74317400});
    74327401
    74337402module.exports = Playlist;
     7403
    74347404},{"../settings.js":57}],61:[function(require,module,exports){
    74357405/**
    74367406 * wp.media.view.Sidebar
     
    74497419});
    74507420
    74517421module.exports = Sidebar;
    7452 },{"./priority-list.js":52}],62:[function(require,module,exports){
    7453 /*globals _, wp */
    74547422
     7423},{"./priority-list.js":52}],62:[function(require,module,exports){
    74557424/**
    74567425 * wp.media.view.Spinner
    74577426 *
     
    74887457});
    74897458
    74907459module.exports = Spinner;
    7491 },{"./view.js":71}],63:[function(require,module,exports){
    7492 /*globals Backbone, _ */
    74937460
     7461},{"./view.js":71}],63:[function(require,module,exports){
    74947462/**
    74957463 * wp.media.view.Toolbar
    74967464 *
     
    76517619});
    76527620
    76537621module.exports = Toolbar;
    7654 },{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){
    7655 /*globals _, wp */
    76567622
     7623},{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){
    76577624/**
    76587625 * wp.media.view.Toolbar.Embed
    76597626 *
     
    76897656});
    76907657
    76917658module.exports = Embed;
    7692 },{"./select.js":65}],65:[function(require,module,exports){
    7693 /*globals _, wp */
    76947659
     7660},{"./select.js":65}],65:[function(require,module,exports){
    76957661/**
    76967662 * wp.media.view.Toolbar.Select
    76977663 *
     
    77607726});
    77617727
    77627728module.exports = Select;
    7763 },{"../toolbar.js":63}],66:[function(require,module,exports){
    7764 /*globals _, wp, jQuery */
    77657729
     7730},{"../toolbar.js":63}],66:[function(require,module,exports){
    77667731/**
    77677732 * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap
    77687733 * or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow.
     
    79807945});
    79817946
    79827947module.exports = EditorUploader;
    7983 },{"../view.js":71}],67:[function(require,module,exports){
    7984 /*globals _, wp */
    79857948
     7949},{"../view.js":71}],67:[function(require,module,exports){
    79867950/**
    79877951 * wp.media.view.UploaderInline
    79887952 *
     
    81138077});
    81148078
    81158079module.exports = UploaderInline;
    8116 },{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){
    8117 /*globals wp */
    81188080
     8081},{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){
    81198082/**
    81208083 * wp.media.view.UploaderStatusError
    81218084 *
     
    81338096});
    81348097
    81358098module.exports = UploaderStatusError;
    8136 },{"../view.js":71}],69:[function(require,module,exports){
    8137 /*globals _, wp */
    81388099
     8100},{"../view.js":71}],69:[function(require,module,exports){
    81398101/**
    81408102 * wp.media.view.UploaderStatus
    81418103 *
     
    82738235});
    82748236
    82758237module.exports = UploaderStatus;
    8276 },{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){
    8277 /*globals _, wp, jQuery */
    82788238
     8239},{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){
    82798240/**
    82808241 * wp.media.view.UploaderWindow
    82818242 *
     
    83868347});
    83878348
    83888349module.exports = UploaderWindow;
    8389 },{"../view.js":71}],71:[function(require,module,exports){
    8390 /*globals wp */
    83918350
     8351},{"../view.js":71}],71:[function(require,module,exports){
    83928352/**
    83938353 * wp.media.View
    83948354 *
     
    84538413});
    84548414
    84558415module.exports = View;
     8416
    84568417},{}]},{},[17]);
  • src/wp-includes/js/media/views.manifest.js

     
    1 /* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
     1/* global _wpMediaViewsL10n */
    22( function( $, _ ) {
    33        var l10n,
    44                media = wp.media;