Make WordPress Core

Ticket #28510: 28510.2.patch

File 28510.2.patch, 85.3 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

     
    223223        media.view.VideoDetails = require( './views/video-details.js' );
    224224
    225225}(_));
     226
    226227},{"./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){
    227228/*globals wp */
    228229
     
    255256});
    256257
    257258module.exports = AudioDetails;
     259
    258260},{"./state.js":7}],3:[function(require,module,exports){
    259261/*globals _, wp, Backbone, getUserSetting, setUserSetting */
    260262
     
    528530_.extend( Library.prototype, selectionSync );
    529531
    530532module.exports = Library;
     533
    531534},{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){
    532535/*globals _, wp */
    533536
     
    579582});
    580583
    581584module.exports = MediaLibrary;
     585
    582586},{"./library.js":3}],5:[function(require,module,exports){
    583587/*globals _, Backbone */
    584588
     
    759763});
    760764
    761765module.exports = Region;
     766
    762767},{}],6:[function(require,module,exports){
    763768/*globals _, Backbone */
    764769
     
    884889});
    885890
    886891module.exports = StateMachine;
     892
    887893},{}],7:[function(require,module,exports){
    888894/*globals _, Backbone */
    889895
     
    11261132});
    11271133
    11281134module.exports = State;
     1135
    11291136},{}],8:[function(require,module,exports){
    11301137/*globals wp */
    11311138
     
    11581165});
    11591166
    11601167module.exports = VideoDetails;
     1168
    11611169},{"./state.js":7}],9:[function(require,module,exports){
    11621170/*globals Backbone, _, wp */
    11631171
     
    11991207});
    12001208
    12011209module.exports = PostMedia;
     1210
    12021211},{}],10:[function(require,module,exports){
    12031212/*globals _ */
    12041213
     
    12661275};
    12671276
    12681277module.exports = selectionSync;
     1278
    12691279},{}],11:[function(require,module,exports){
    12701280/*globals _ */
    12711281
     
    13521362});
    13531363
    13541364module.exports = AttachmentCompat;
     1365
    13551366},{"./view.js":51}],12:[function(require,module,exports){
    13561367/*globals _, jQuery */
    13571368
     
    14311442});
    14321443
    14331444module.exports = AttachmentFilters;
     1445
    14341446},{"./view.js":51}],13:[function(require,module,exports){
    14351447/*globals _, wp */
    14361448
     
    15231535});
    15241536
    15251537module.exports = All;
     1538
    15261539},{"../attachment-filters.js":12}],14:[function(require,module,exports){
    15271540/*globals _, wp */
    15281541
     
    15661579});
    15671580
    15681581module.exports = DateFilter;
     1582
    15691583},{"../attachment-filters.js":12}],15:[function(require,module,exports){
    15701584/*globals wp */
    15711585
     
    16271641});
    16281642
    16291643module.exports = Uploaded;
     1644
    16301645},{"../attachment-filters.js":12}],16:[function(require,module,exports){
    16311646/*globals _, wp, jQuery */
    16321647
     
    21822197});
    21832198
    21842199module.exports = Attachment;
     2200
    21852201},{"./view.js":51}],17:[function(require,module,exports){
    21862202/*globals _, wp */
    21872203
     
    23232339});
    23242340
    23252341module.exports = Details;
     2342
    23262343},{"../attachment.js":16}],18:[function(require,module,exports){
    23272344/**
    23282345 * wp.media.view.Attachment.Library
     
    23432360});
    23442361
    23452362module.exports = Library;
     2363
    23462364},{"../attachment.js":16}],19:[function(require,module,exports){
    23472365/*globals _, wp, jQuery */
    23482366
     
    26442662});
    26452663
    26462664module.exports = Attachments;
     2665
    26472666},{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){
    26482667/*globals _, wp, jQuery */
    26492668
     
    31043123});
    31053124
    31063125module.exports = AttachmentsBrowser;
     3126
    31073127},{"../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){
    31083128/*globals wp */
    31093129
     
    31433163});
    31443164
    31453165module.exports = AudioDetails;
     3166
    31463167},{"./media-details":31}],22:[function(require,module,exports){
    31473168/*globals _, Backbone */
    31483169
     
    32333254});
    32343255
    32353256module.exports = Button;
     3257
    32363258},{"./view.js":51}],23:[function(require,module,exports){
    32373259/**
    32383260 * wp.media.view.FocusManager
     
    32813303});
    32823304
    32833305module.exports = FocusManager;
     3306
    32843307},{"./view.js":51}],24:[function(require,module,exports){
    32853308/*globals _, Backbone */
    32863309
     
    34543477_.extend( Frame.prototype, StateMachine.prototype );
    34553478
    34563479module.exports = Frame;
     3480
    34573481},{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){
    34583482/*globals wp */
    34593483
     
    35323556});
    35333557
    35343558module.exports = AudioDetails;
     3559
    35353560},{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){
    35363561/*globals wp */
    35373562
     
    36653690});
    36663691
    36673692module.exports = MediaDetails;
     3693
    36683694},{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){
    36693695/*globals _, wp */
    36703696
     
    38403866});
    38413867
    38423868module.exports = Select;
     3869
    38433870},{"../../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){
    38443871/*globals _, wp */
    38453872
     
    39784005});
    39794006
    39804007module.exports = VideoDetails;
     4008
    39814009},{"../../controllers/media-library.js":4,"../../controllers/video-details.js":8,"../video-details.js":50,"./media-details":26}],29:[function(require,module,exports){
    39824010/**
    39834011 * wp.media.view.Iframe
     
    40044032});
    40054033
    40064034module.exports = Iframe;
     4035
    40074036},{"./view.js":51}],30:[function(require,module,exports){
    40084037/**
    40094038 * @class
     
    40304059});
    40314060
    40324061module.exports = Label;
     4062
    40334063},{"./view.js":51}],31:[function(require,module,exports){
    40344064/*globals _, wp, jQuery */
    40354065
     
    41834213});
    41844214
    41854215module.exports = MediaDetails;
     4216
    41864217},{"./settings/attachment-display.js":41}],32:[function(require,module,exports){
    41874218/*globals _, wp, jQuery */
    41884219
     
    44384469});
    44394470
    44404471module.exports = MediaFrame;
     4472
    44414473},{"./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){
    44424474/*globals wp, jQuery */
    44434475
     
    45124544});
    45134545
    45144546module.exports = MenuItem;
     4547
    45154548},{"./view.js":51}],34:[function(require,module,exports){
    45164549/**
    45174550 * wp.media.view.Menu
     
    46284661});
    46294662
    46304663module.exports = Menu;
     4664
    46314665},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
    46324666/*globals _, wp, jQuery */
    46334667
     
    48444878});
    48454879
    48464880module.exports = Modal;
     4881
    48474882},{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){
    48484883/*globals _, Backbone */
    48494884
     
    49454980});
    49464981
    49474982module.exports = PriorityList;
     4983
    49484984},{"./view.js":51}],37:[function(require,module,exports){
    49494985/**
    49504986 * wp.media.view.RouterItem
     
    49715007});
    49725008
    49735009module.exports = RouterItem;
     5010
    49745011},{"./menu-item.js":33}],38:[function(require,module,exports){
    49755012/**
    49765013 * wp.media.view.Router
     
    50085045});
    50095046
    50105047module.exports = Router;
     5048
    50115049},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
    50125050/*globals wp */
    50135051
     
    50585096});
    50595097
    50605098module.exports = Search;
     5099
    50615100},{"./view.js":51}],40:[function(require,module,exports){
    50625101/*globals _, Backbone, jQuery */
    50635102
     
    51805219});
    51815220
    51825221module.exports = Settings;
     5222
    51835223},{"./view.js":51}],41:[function(require,module,exports){
    51845224/*globals _, wp */
    51855225
     
    52755315});
    52765316
    52775317module.exports = AttachmentDisplay;
     5318
    52785319},{"../settings.js":40}],42:[function(require,module,exports){
    52795320/**
    52805321 * wp.media.view.Sidebar
     
    52935334});
    52945335
    52955336module.exports = Sidebar;
     5337
    52965338},{"./priority-list.js":36}],43:[function(require,module,exports){
    52975339/*globals _, wp */
    52985340
     
    53325374});
    53335375
    53345376module.exports = Spinner;
     5377
    53355378},{"./view.js":51}],44:[function(require,module,exports){
    53365379/*globals Backbone, _ */
    53375380
     
    54955538});
    54965539
    54975540module.exports = Toolbar;
     5541
    54985542},{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){
    54995543/*globals _, wp */
    55005544
     
    55665610});
    55675611
    55685612module.exports = Select;
     5613
    55695614},{"../toolbar.js":44}],46:[function(require,module,exports){
    55705615/*globals _, wp */
    55715616
     
    56995744});
    57005745
    57015746module.exports = UploaderInline;
     5747
    57025748},{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){
    57035749/*globals wp */
    57045750
     
    57195765});
    57205766
    57215767module.exports = UploaderStatusError;
     5768
    57225769},{"../view.js":51}],48:[function(require,module,exports){
    57235770/*globals _, wp */
    57245771
     
    58595906});
    58605907
    58615908module.exports = UploaderStatus;
     5909
    58625910},{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){
    58635911/*globals _, wp, jQuery */
    58645912
     
    59726020});
    59736021
    59746022module.exports = UploaderWindow;
     6023
    59756024},{"../view.js":51}],50:[function(require,module,exports){
    59766025/*globals wp */
    59776026
     
    60166065});
    60176066
    60186067module.exports = VideoDetails;
     6068
    60196069},{"./media-details":31}],51:[function(require,module,exports){
    60206070/*globals wp */
    60216071
     
    60836133});
    60846134
    60856135module.exports = View;
     6136
    60866137},{}]},{},[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

     
    2828});
    2929
    3030module.exports = EditAttachmentMetadata;
     31
    3132},{"./state.js":6}],2:[function(require,module,exports){
    3233/*globals _, wp */
    3334
     
    107108});
    108109
    109110module.exports = EditImage;
     111
    110112},{"../views/toolbar.js":46,"./state.js":6}],3:[function(require,module,exports){
    111113/*globals _, wp, Backbone, getUserSetting, setUserSetting */
    112114
     
    380382_.extend( Library.prototype, selectionSync );
    381383
    382384module.exports = Library;
     385
    383386},{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){
    384387/*globals _, Backbone */
    385388
     
    560563});
    561564
    562565module.exports = Region;
     566
    563567},{}],5:[function(require,module,exports){
    564568/*globals _, Backbone */
    565569
     
    685689});
    686690
    687691module.exports = StateMachine;
     692
    688693},{}],6:[function(require,module,exports){
    689694/*globals _, Backbone */
    690695
     
    927932});
    928933
    929934module.exports = State;
     935
    930936},{}],7:[function(require,module,exports){
    931937/* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
    932938(function (wp) {
     
    943949        media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' );
    944950
    945951}(wp));
     952
    946953},{"./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){
    947954/*globals jQuery, Backbone */
    948955
     
    990997});
    991998
    992999module.exports = Router;
     1000
    9931001},{}],9:[function(require,module,exports){
    9941002/*globals _ */
    9951003
     
    10571065};
    10581066
    10591067module.exports = selectionSync;
     1068
    10601069},{}],10:[function(require,module,exports){
    10611070/*globals _ */
    10621071
     
    11431152});
    11441153
    11451154module.exports = AttachmentCompat;
     1155
    11461156},{"./view.js":51}],11:[function(require,module,exports){
    11471157/*globals _, jQuery */
    11481158
     
    12221232});
    12231233
    12241234module.exports = AttachmentFilters;
     1235
    12251236},{"./view.js":51}],12:[function(require,module,exports){
    12261237/*globals _, wp */
    12271238
     
    13141325});
    13151326
    13161327module.exports = All;
     1328
    13171329},{"../attachment-filters.js":11}],13:[function(require,module,exports){
    13181330/*globals _, wp */
    13191331
     
    13571369});
    13581370
    13591371module.exports = DateFilter;
     1372
    13601373},{"../attachment-filters.js":11}],14:[function(require,module,exports){
    13611374/*globals wp */
    13621375
     
    14181431});
    14191432
    14201433module.exports = Uploaded;
     1434
    14211435},{"../attachment-filters.js":11}],15:[function(require,module,exports){
    14221436/*globals _, wp, jQuery */
    14231437
     
    19731987});
    19741988
    19751989module.exports = Attachment;
     1990
    19761991},{"./view.js":51}],16:[function(require,module,exports){
    19771992/*globals wp */
    19781993
     
    20162031});
    20172032
    20182033module.exports = TwoColumn;
     2034
    20192035},{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){
    20202036/*globals _, wp */
    20212037
     
    21572173});
    21582174
    21592175module.exports = Details;
     2176
    21602177},{"../attachment.js":15}],18:[function(require,module,exports){
    21612178/**
    21622179 * wp.media.view.Attachment.Library
     
    21772194});
    21782195
    21792196module.exports = Library;
     2197
    21802198},{"../attachment.js":15}],19:[function(require,module,exports){
    21812199/*globals _, wp, jQuery */
    21822200
     
    24782496});
    24792497
    24802498module.exports = Attachments;
     2499
    24812500},{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){
    24822501/*globals _, wp, jQuery */
    24832502
     
    29382957});
    29392958
    29402959module.exports = AttachmentsBrowser;
     2960
    29412961},{"../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){
    29422962/*globals _, Backbone */
    29432963
     
    30283048});
    30293049
    30303050module.exports = Button;
     3051
    30313052},{"./view.js":51}],22:[function(require,module,exports){
    30323053/**
    30333054 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
     
    30723093});
    30733094
    30743095module.exports = DeleteSelectedPermanently;
     3096
    30753097},{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){
    30763098/*globals wp */
    30773099
     
    31243146});
    31253147
    31263148module.exports = DeleteSelected;
     3149
    31273150},{"../button.js":21}],24:[function(require,module,exports){
    31283151/*globals wp */
    31293152
     
    31803203});
    31813204
    31823205module.exports = SelectModeToggle;
     3206
    31833207},{"../button.js":21}],25:[function(require,module,exports){
    31843208var View = require( './view.js' ),
    31853209        EditImage = require( './edit-image.js' ),
     
    32053229});
    32063230
    32073231module.exports = Details;
     3232
    32083233},{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){
    32093234/*globals _, wp */
    32103235
     
    32593284});
    32603285
    32613286module.exports = EditImage;
     3287
    32623288},{"./view.js":51}],27:[function(require,module,exports){
    32633289/**
    32643290 * wp.media.view.FocusManager
     
    33073333});
    33083334
    33093335module.exports = FocusManager;
     3336
    33103337},{"./view.js":51}],28:[function(require,module,exports){
    33113338/*globals _, Backbone */
    33123339
     
    34803507_.extend( Frame.prototype, StateMachine.prototype );
    34813508
    34823509module.exports = Frame;
     3510
    34833511},{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){
    34843512/*globals _, wp, jQuery */
    34853513
     
    37273755});
    37283756
    37293757module.exports = EditAttachments;
     3758
    37303759},{"../../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){
    37313760/*globals _, Backbone, wp, jQuery */
    37323761
     
    39754004});
    39764005
    39774006module.exports = Manage;
     4007
    39784008},{"../../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){
    39794009/**
    39804010 * wp.media.view.Iframe
     
    40014031});
    40024032
    40034033module.exports = Iframe;
     4034
    40044035},{"./view.js":51}],32:[function(require,module,exports){
    40054036/**
    40064037 * @class
     
    40274058});
    40284059
    40294060module.exports = Label;
     4061
    40304062},{"./view.js":51}],33:[function(require,module,exports){
    40314063/*globals _, wp, jQuery */
    40324064
     
    41804212});
    41814213
    41824214module.exports = MediaDetails;
     4215
    41834216},{"./settings/attachment-display.js":43}],34:[function(require,module,exports){
    41844217/*globals _, wp, jQuery */
    41854218
     
    44354468});
    44364469
    44374470module.exports = MediaFrame;
     4471
    44384472},{"./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){
    44394473/*globals wp, jQuery */
    44404474
     
    45094543});
    45104544
    45114545module.exports = MenuItem;
     4546
    45124547},{"./view.js":51}],36:[function(require,module,exports){
    45134548/**
    45144549 * wp.media.view.Menu
     
    46254660});
    46264661
    46274662module.exports = Menu;
     4663
    46284664},{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){
    46294665/*globals _, wp, jQuery */
    46304666
     
    48414877});
    48424878
    48434879module.exports = Modal;
     4880
    48444881},{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){
    48454882/*globals _, Backbone */
    48464883
     
    49424979});
    49434980
    49444981module.exports = PriorityList;
     4982
    49454983},{"./view.js":51}],39:[function(require,module,exports){
    49464984/**
    49474985 * wp.media.view.RouterItem
     
    49685006});
    49695007
    49705008module.exports = RouterItem;
     5009
    49715010},{"./menu-item.js":35}],40:[function(require,module,exports){
    49725011/**
    49735012 * wp.media.view.Router
     
    50055044});
    50065045
    50075046module.exports = Router;
     5047
    50085048},{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){
    50095049/*globals wp */
    50105050
     
    50555095});
    50565096
    50575097module.exports = Search;
     5098
    50585099},{"./view.js":51}],42:[function(require,module,exports){
    50595100/*globals _, Backbone, jQuery */
    50605101
     
    51775218});
    51785219
    51795220module.exports = Settings;
     5221
    51805222},{"./view.js":51}],43:[function(require,module,exports){
    51815223/*globals _, wp */
    51825224
     
    52725314});
    52735315
    52745316module.exports = AttachmentDisplay;
     5317
    52755318},{"../settings.js":42}],44:[function(require,module,exports){
    52765319/**
    52775320 * wp.media.view.Sidebar
     
    52905333});
    52915334
    52925335module.exports = Sidebar;
     5336
    52935337},{"./priority-list.js":38}],45:[function(require,module,exports){
    52945338/*globals _, wp */
    52955339
     
    53295373});
    53305374
    53315375module.exports = Spinner;
     5376
    53325377},{"./view.js":51}],46:[function(require,module,exports){
    53335378/*globals Backbone, _ */
    53345379
     
    54925537});
    54935538
    54945539module.exports = Toolbar;
     5540
    54955541},{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){
    54965542/*globals _, wp */
    54975543
     
    56255671});
    56265672
    56275673module.exports = UploaderInline;
     5674
    56285675},{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){
    56295676/*globals wp */
    56305677
     
    56455692});
    56465693
    56475694module.exports = UploaderStatusError;
     5695
    56485696},{"../view.js":51}],49:[function(require,module,exports){
    56495697/*globals _, wp */
    56505698
     
    57855833});
    57865834
    57875835module.exports = UploaderStatus;
     5836
    57885837},{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){
    57895838/*globals _, wp, jQuery */
    57905839
     
    58985947});
    58995948
    59005949module.exports = UploaderWindow;
     5950
    59015951},{"../view.js":51}],51:[function(require,module,exports){
    59025952/*globals wp */
    59035953
     
    59656015});
    59666016
    59676017module.exports = View;
     6018
    59686019},{}]},{},[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
    234235},{"./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){
    235236/*globals jQuery, Backbone, _, wp */
    236237
     
    400401});
    401402
    402403module.exports = Attachment;
     404
    403405},{"./attachments.js":3}],3:[function(require,module,exports){
    404406/*globals jQuery, Backbone, _, wp */
    405407
     
    936938});
    937939
    938940module.exports = Attachments;
     941
    939942},{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){
    940943/*globals jQuery, Backbone */
    941944
     
    10931096});
    10941097
    10951098module.exports = PostImage;
     1099
    10961100},{"./attachment":2}],5:[function(require,module,exports){
    10971101/*globals jQuery, _, wp */
    10981102
     
    14021406});
    14031407
    14041408module.exports = Query;
     1409
    14051410},{"./attachments.js":3}],6:[function(require,module,exports){
    14061411/*globals _ */
    14071412
     
    15001505});
    15011506
    15021507module.exports = Selection;
     1508
    15031509},{"./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

     
    100100});
    101101
    102102module.exports = CollectionAdd;
     103
    103104},{"./library.js":10}],2:[function(require,module,exports){
    104105/*globals wp, jQuery, Backbone */
    105106
     
    263264});
    264265
    265266module.exports = CollectionEdit;
     267
    266268},{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){
    267269/*globals _, wp, Backbone */
    268270
     
    341343
    342344                                                this.$el.text(l10n.cropping);
    343345                                                this.$el.attr('disabled', true);
    344                                                
     346
    345347                                                controller.state().doCrop( selection ).done( function( croppedImage ) {
    346348                                                        controller.trigger('cropped', croppedImage );
    347349                                                        controller.close();
     
    383385});
    384386
    385387module.exports = Cropper;
     388
    386389},{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){
    387390/*globals _, wp */
    388391
     
    462465});
    463466
    464467module.exports = EditImage;
     468
    465469},{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
    466470/*globals _, wp, jQuery, Backbone */
    467471
     
    600604});
    601605
    602606module.exports = Embed;
     607
    603608},{"./state.js":15}],6:[function(require,module,exports){
    604609/*globals _, wp */
    605610
     
    723728});
    724729
    725730module.exports = FeaturedImage;
     731
    726732},{"./library.js":10}],7:[function(require,module,exports){
    727733/*globals _, wp */
    728734
     
    811817});
    812818
    813819module.exports = GalleryAdd;
     820
    814821},{"./library.js":10}],8:[function(require,module,exports){
    815822/*globals wp, Backbone */
    816823
     
    951958});
    952959
    953960module.exports = GalleryEdit;
     961
    954962},{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){
    955963/*globals _, wp */
    956964
     
    10141022});
    10151023
    10161024module.exports = ImageDetails;
     1025
    10171026},{"./library.js":10,"./state.js":15}],10:[function(require,module,exports){
    10181027/*globals _, wp, Backbone, getUserSetting, setUserSetting */
    10191028
     
    12871296_.extend( Library.prototype, selectionSync );
    12881297
    12891298module.exports = Library;
     1299
    12901300},{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){
    12911301/*globals _, wp */
    12921302
     
    13381348});
    13391349
    13401350module.exports = MediaLibrary;
     1351
    13411352},{"./library.js":10}],12:[function(require,module,exports){
    13421353/*globals _, Backbone */
    13431354
     
    15181529});
    15191530
    15201531module.exports = Region;
     1532
    15211533},{}],13:[function(require,module,exports){
    15221534/*globals _, wp */
    15231535
     
    16271639});
    16281640
    16291641module.exports = ReplaceImage;
     1642
    16301643},{"./library.js":10}],14:[function(require,module,exports){
    16311644/*globals _, Backbone */
    16321645
     
    17521765});
    17531766
    17541767module.exports = StateMachine;
     1768
    17551769},{}],15:[function(require,module,exports){
    17561770/*globals _, Backbone */
    17571771
     
    19942008});
    19952009
    19962010module.exports = State;
     2011
    19972012},{}],16:[function(require,module,exports){
    19982013/*globals _ */
    19992014
     
    20612076};
    20622077
    20632078module.exports = selectionSync;
     2079
    20642080},{}],17:[function(require,module,exports){
    20652081/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
    20662082( function( $, _ ) {
     
    22102226        media.view.Spinner = require( './views/spinner.js' );
    22112227
    22122228}(jQuery, _));
     2229
    22132230},{"./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){
    22142231/*globals _ */
    22152232
     
    22962313});
    22972314
    22982315module.exports = AttachmentCompat;
     2316
    22992317},{"./view.js":71}],19:[function(require,module,exports){
    23002318/*globals _, jQuery */
    23012319
     
    23752393});
    23762394
    23772395module.exports = AttachmentFilters;
     2396
    23782397},{"./view.js":71}],20:[function(require,module,exports){
    23792398/*globals _, wp */
    23802399
     
    24672486});
    24682487
    24692488module.exports = All;
     2489
    24702490},{"../attachment-filters.js":19}],21:[function(require,module,exports){
    24712491/*globals _, wp */
    24722492
     
    25102530});
    25112531
    25122532module.exports = DateFilter;
     2533
    25132534},{"../attachment-filters.js":19}],22:[function(require,module,exports){
    25142535/*globals wp */
    25152536
     
    25712592});
    25722593
    25732594module.exports = Uploaded;
     2595
    25742596},{"../attachment-filters.js":19}],23:[function(require,module,exports){
    25752597/*globals _, wp, jQuery */
    25762598
     
    31263148});
    31273149
    31283150module.exports = Attachment;
     3151
    31293152},{"./view.js":71}],24:[function(require,module,exports){
    31303153/*globals _, wp */
    31313154
     
    32673290});
    32683291
    32693292module.exports = Details;
     3293
    32703294},{"../attachment.js":23}],25:[function(require,module,exports){
    32713295/**
    32723296 * wp.media.view.Attachment.EditLibrary
     
    32873311});
    32883312
    32893313module.exports = EditLibrary;
     3314
    32903315},{"../attachment.js":23}],26:[function(require,module,exports){
    32913316/**
    32923317 * wp.media.view.Attachments.EditSelection
     
    33083333});
    33093334
    33103335module.exports = EditSelection;
     3336
    33113337},{"./selection.js":28}],27:[function(require,module,exports){
    33123338/**
    33133339 * wp.media.view.Attachment.Library
     
    33283354});
    33293355
    33303356module.exports = Library;
     3357
    33313358},{"../attachment.js":23}],28:[function(require,module,exports){
    33323359/**
    33333360 * wp.media.view.Attachment.Selection
     
    33523379});
    33533380
    33543381module.exports = Selection;
     3382
    33553383},{"../attachment.js":23}],29:[function(require,module,exports){
    33563384/*globals _, wp, jQuery */
    33573385
     
    36533681});
    36543682
    36553683module.exports = Attachments;
     3684
    36563685},{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){
    36573686/*globals _, wp, jQuery */
    36583687
     
    41134142});
    41144143
    41154144module.exports = AttachmentsBrowser;
     4145
    41164146},{"../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){
    41174147/*globals _ */
    41184148
     
    41454175});
    41464176
    41474177module.exports = Selection;
     4178
    41484179},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
    41494180/*globals _, Backbone, jQuery */
    41504181
     
    41944225});
    41954226
    41964227module.exports = ButtonGroup;
     4228
    41974229},{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){
    41984230/*globals _, Backbone */
    41994231
     
    42844316});
    42854317
    42864318module.exports = Button;
     4319
    42874320},{"./view.js":71}],34:[function(require,module,exports){
    42884321/*globals _, wp, jQuery */
    42894322
     
    43534386});
    43544387
    43554388module.exports = Cropper;
     4389
    43564390},{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){
    43574391/*globals _, wp */
    43584392
     
    44074441});
    44084442
    44094443module.exports = EditImage;
     4444
    44104445},{"./view.js":71}],36:[function(require,module,exports){
    44114446/**
    44124447 * wp.media.view.Embed
     
    44764511});
    44774512
    44784513module.exports = Embed;
     4514
    44794515},{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){
    44804516/*globals wp */
    44814517
     
    45104546});
    45114547
    45124548module.exports = EmbedImage;
     4549
    45134550},{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
    45144551/*globals _, wp, jQuery */
    45154552
     
    45784615});
    45794616
    45804617module.exports = EmbedLink;
     4618
    45814619},{"../settings.js":57}],39:[function(require,module,exports){
    45824620/*globals _, wp, jQuery */
    45834621
     
    46584696});
    46594697
    46604698module.exports = EmbedUrl;
     4699
    46614700},{"../view.js":71}],40:[function(require,module,exports){
    46624701/**
    46634702 * wp.media.view.FocusManager
     
    47064745});
    47074746
    47084747module.exports = FocusManager;
     4748
    47094749},{"./view.js":71}],41:[function(require,module,exports){
    47104750/*globals _, Backbone */
    47114751
     
    48794919_.extend( Frame.prototype, StateMachine.prototype );
    48804920
    48814921module.exports = Frame;
     4922
    48824923},{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){
    48834924/*globals wp */
    48844925
     
    50635104});
    50645105
    50655106module.exports = ImageDetails;
     5107
    50665108},{"../../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){
    50675109/*globals _, wp */
    50685110
     
    58155857});
    58165858
    58175859module.exports = Post;
     5860
    58185861},{"../../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){
    58195862/*globals _, wp */
    58205863
     
    59906033});
    59916034
    59926035module.exports = Select;
     6036
    59936037},{"../../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){
    59946038/**
    59956039 * wp.media.view.Iframe
     
    60166060});
    60176061
    60186062module.exports = Iframe;
     6063
    60196064},{"./view.js":71}],46:[function(require,module,exports){
    60206065/*globals _, wp, jQuery */
    60216066
     
    61856230});
    61866231
    61876232module.exports = AttachmentDisplay;
     6233
    61886234},{"./settings/attachment-display.js":58}],47:[function(require,module,exports){
    61896235/**
    61906236 * @class
     
    62116257});
    62126258
    62136259module.exports = Label;
     6260
    62146261},{"./view.js":71}],48:[function(require,module,exports){
    62156262/*globals _, wp, jQuery */
    62166263
     
    64666513});
    64676514
    64686515module.exports = MediaFrame;
     6516
    64696517},{"./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){
    64706518/*globals wp, jQuery */
    64716519
     
    65406588});
    65416589
    65426590module.exports = MenuItem;
     6591
    65436592},{"./view.js":71}],50:[function(require,module,exports){
    65446593/**
    65456594 * wp.media.view.Menu
     
    66566705});
    66576706
    66586707module.exports = Menu;
     6708
    66596709},{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
    66606710/*globals _, wp, jQuery */
    66616711
     
    68726922});
    68736923
    68746924module.exports = Modal;
     6925
    68756926},{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){
    68766927/*globals _, Backbone */
    68776928
     
    69737024});
    69747025
    69757026module.exports = PriorityList;
     7027
    69767028},{"./view.js":71}],53:[function(require,module,exports){
    69777029/**
    69787030 * wp.media.view.RouterItem
     
    69997051});
    70007052
    70017053module.exports = RouterItem;
     7054
    70027055},{"./menu-item.js":49}],54:[function(require,module,exports){
    70037056/**
    70047057 * wp.media.view.Router
     
    70367089});
    70377090
    70387091module.exports = Router;
     7092
    70397093},{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){
    70407094/*globals wp */
    70417095
     
    70867140});
    70877141
    70887142module.exports = Search;
     7143
    70897144},{"./view.js":71}],56:[function(require,module,exports){
    70907145/*globals _, Backbone, wp */
    70917146
     
    71727227});
    71737228
    71747229module.exports = Selection;
     7230
    71757231},{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
    71767232/*globals _, Backbone, jQuery */
    71777233
     
    72947350});
    72957351
    72967352module.exports = Settings;
     7353
    72977354},{"./view.js":71}],58:[function(require,module,exports){
    72987355/*globals _, wp */
    72997356
     
    73897446});
    73907447
    73917448module.exports = AttachmentDisplay;
     7449
    73927450},{"../settings.js":57}],59:[function(require,module,exports){
    73937451/*globals wp */
    73947452
     
    74107468});
    74117469
    74127470module.exports = Gallery;
     7471
    74137472},{"../settings.js":57}],60:[function(require,module,exports){
    74147473/*globals wp */
    74157474
     
    74317490});
    74327491
    74337492module.exports = Playlist;
     7493
    74347494},{"../settings.js":57}],61:[function(require,module,exports){
    74357495/**
    74367496 * wp.media.view.Sidebar
     
    74497509});
    74507510
    74517511module.exports = Sidebar;
     7512
    74527513},{"./priority-list.js":52}],62:[function(require,module,exports){
    74537514/*globals _, wp */
    74547515
     
    74887549});
    74897550
    74907551module.exports = Spinner;
     7552
    74917553},{"./view.js":71}],63:[function(require,module,exports){
    74927554/*globals Backbone, _ */
    74937555
     
    76517713});
    76527714
    76537715module.exports = Toolbar;
     7716
    76547717},{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){
    76557718/*globals _, wp */
    76567719
     
    76897752});
    76907753
    76917754module.exports = Embed;
     7755
    76927756},{"./select.js":65}],65:[function(require,module,exports){
    76937757/*globals _, wp */
    76947758
     
    77607824});
    77617825
    77627826module.exports = Select;
     7827
    77637828},{"../toolbar.js":63}],66:[function(require,module,exports){
    77647829/*globals _, wp, jQuery */
    77657830
     
    79808045});
    79818046
    79828047module.exports = EditorUploader;
     8048
    79838049},{"../view.js":71}],67:[function(require,module,exports){
    79848050/*globals _, wp */
    79858051
     
    81138179});
    81148180
    81158181module.exports = UploaderInline;
     8182
    81168183},{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){
    81178184/*globals wp */
    81188185
     
    81338200});
    81348201
    81358202module.exports = UploaderStatusError;
     8203
    81368204},{"../view.js":71}],69:[function(require,module,exports){
    81378205/*globals _, wp */
    81388206
     
    82738341});
    82748342
    82758343module.exports = UploaderStatus;
     8344
    82768345},{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){
    82778346/*globals _, wp, jQuery */
    82788347
     
    83868455});
    83878456
    83888457module.exports = UploaderWindow;
     8458
    83898459},{"../view.js":71}],71:[function(require,module,exports){
    83908460/*globals wp */
    83918461
     
    84538523});
    84548524
    84558525module.exports = View;
     8526
    84568527},{}]},{},[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;