Make WordPress Core

Changeset 31492


Ignore:
Timestamp:
02/22/2015 07:24:45 AM (10 years ago)
Author:
wonderboymusic
Message:

Media JS files:

  • specify globals in more files
  • add missing wp.media.* namespace docs
  • add doc blocks to files that had none

See #28510.

Location:
trunk/src/wp-includes/js/media
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media/audio-video.js

    r31491 r31492  
    13661366
    13671367},{"./view.js":51}],12:[function(require,module,exports){
    1368 /*globals _ */
     1368/*globals _, jQuery */
    13691369
    13701370/**
     
    14461446
    14471447},{"./view.js":51}],13:[function(require,module,exports){
     1448/*globals wp */
     1449
    14481450/**
    14491451 * wp.media.view.AttachmentFilters.All
     
    15811583
    15821584},{"../attachment-filters.js":12}],15:[function(require,module,exports){
     1585/*globals wp */
     1586
    15831587/**
    15841588 * wp.media.view.AttachmentFilters.Uploaded
     
    23602364
    23612365},{"../attachment.js":16}],19:[function(require,module,exports){
    2362 /*globals wp, _ */
     2366/*globals wp, _, jQuery */
    23632367
    23642368/**
     
    40334037},{"./view.js":51}],30:[function(require,module,exports){
    40344038/**
     4039 * wp.media.view.Label
     4040 *
    40354041 * @class
    40364042 * @augments wp.media.View
     
    44834489
    44844490},{"./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){
     4491/*globals jQuery */
     4492
    44854493/**
    44864494 * wp.media.view.MenuItem
     
    46734681
    46744682},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
    4675 /*globals wp, _ */
     4683/*globals wp, _, jQuery */
    46764684
    46774685/**
     
    50575065
    50585066},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
     5067/*globals wp */
     5068
    50595069/**
    50605070 * wp.media.view.Search
     
    57545764
    57555765},{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){
     5766/*globals wp */
     5767
    57565768/**
    57575769 * wp.media.view.UploaderStatusError
  • trunk/src/wp-includes/js/media/controllers/edit-attachment-metadata.js

    r31490 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.controller.EditAttachmentMetadata
  • trunk/src/wp-includes/js/media/controllers/edit-image.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.controller.EditImage
  • trunk/src/wp-includes/js/media/controllers/gallery-add.js

    r31491 r31492  
    22
    33/**
     4 * wp.media.controller.GalleryAdd
     5 *
    46 * A state for selecting more images to add to a gallery.
    57 *
  • trunk/src/wp-includes/js/media/controllers/gallery-edit.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.controller.GalleryEdit
  • trunk/src/wp-includes/js/media/grid.js

    r31491 r31492  
    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
    24/**
    35 * wp.media.controller.EditAttachmentMetadata
     
    2931
    3032},{"./state.js":6}],2:[function(require,module,exports){
     33/*globals wp */
     34
    3135/**
    3236 * wp.media.controller.EditImage
     
    933937
    934938},{}],7:[function(require,module,exports){
     939/*globals wp */
     940
    935941var media = wp.media;
    936942
     
    949955
    950956/**
     957 * wp.media.view.MediaFrame.Manage.Router
     958 *
    951959 * A router for handling the browser history and application state.
    952960 *
     
    11491157
    11501158},{"./view.js":49}],11:[function(require,module,exports){
    1151 /*globals _ */
     1159/*globals _, jQuery */
    11521160
    11531161/**
     
    12291237
    12301238},{"./view.js":49}],12:[function(require,module,exports){
     1239/*globals wp */
     1240
    12311241/**
    12321242 * wp.media.view.AttachmentFilters.All
     
    13641374
    13651375},{"../attachment-filters.js":11}],14:[function(require,module,exports){
     1376/*globals wp */
     1377
    13661378/**
    13671379 * wp.media.view.AttachmentFilters.Uploaded
     
    19831995
    19841996/**
     1997 * wp.media.view.Attachment.Details.TwoColumn
     1998 *
    19851999 * A similar view to media.view.Attachment.Details
    19862000 * for use in the Edit Attachment modal.
     
    21862200
    21872201},{"../attachment.js":15}],19:[function(require,module,exports){
    2188 /*globals wp, _ */
     2202/*globals wp, _, jQuery */
    21892203
    21902204/**
     
    30413055},{"./view.js":49}],22:[function(require,module,exports){
    30423056/**
     3057 * wp.media.view.DeleteSelectedPermanentlyButton
     3058 *
    30433059 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
    30443060 *
     
    30853101
    30863102},{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){
     3103/*globals wp */
     3104
    30873105/**
     3106 * wp.media.view.DeleteSelectedButton
     3107 *
    30883108 * A button that handles bulk Delete/Trash logic
    30893109 *
     
    31363156
    31373157},{"../button.js":21}],24:[function(require,module,exports){
     3158/*globals wp */
     3159
     3160/**
     3161 * wp.media.view.SelectModeToggleButton
     3162 *
     3163 * @class
     3164 * @augments wp.media.view.Button
     3165 * @augments wp.media.View
     3166 * @augments wp.Backbone.View
     3167 * @augments Backbone.View
     3168 */
    31383169var Button = require( '../button.js' ),
    31393170    l10n = wp.media.view.l10n,
     
    31933224/*globals wp, _ */
    31943225
     3226/**
     3227 * wp.media.view.EditImage.Details
     3228 *
     3229 * @class
     3230 * @augments wp.media.view.EditImage.Details
     3231 * @augments wp.media.View
     3232 * @augments wp.Backbone.View
     3233 * @augments Backbone.View
     3234 */
    31953235var View = require( './view.js' ),
    31963236    EditImage = wp.media.view.EditImage,
     
    34423482
    34433483},{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":49}],28:[function(require,module,exports){
    3444 /*globals wp, _ */
     3484/*globals wp, _, jQuery */
    34453485
    34463486/**
     3487 * wp.media.view.MediaFrame.EditAttachments
     3488 *
    34473489 * A frame for editing the details of a specific media item.
    34483490 *
     
    39674009},{"./view.js":49}],31:[function(require,module,exports){
    39684010/**
     4011 * wp.media.view.Label
     4012 *
    39694013 * @class
    39704014 * @augments wp.media.View
     
    42494293
    42504294},{"./frame.js":27,"./iframe.js":30,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":48,"./view.js":49}],33:[function(require,module,exports){
     4295/*globals jQuery */
     4296
    42514297/**
    42524298 * wp.media.view.MenuItem
     
    44394485
    44404486},{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){
    4441 /*globals wp, _ */
     4487/*globals wp, _, jQuery */
    44424488
    44434489/**
     
    48234869
    48244870},{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){
     4871/*globals wp */
     4872
    48254873/**
    48264874 * wp.media.view.Search
     
    54485496
    54495497},{"../view.js":49,"./status.js":47}],46:[function(require,module,exports){
     5498/*globals wp */
     5499
    54505500/**
    54515501 * wp.media.view.UploaderStatusError
  • trunk/src/wp-includes/js/media/grid.manifest.js

    r31399 r31492  
     1/*globals wp */
     2
    13var media = wp.media;
    24
  • trunk/src/wp-includes/js/media/routers/manage.js

    r31491 r31492  
    22
    33/**
     4 * wp.media.view.MediaFrame.Manage.Router
     5 *
    46 * A router for handling the browser history and application state.
    57 *
  • trunk/src/wp-includes/js/media/views.js

    r31491 r31492  
    388388
    389389},{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){
     390/*globals wp */
     391
    390392/**
    391393 * wp.media.controller.EditImage
     
    732734
    733735/**
     736 * wp.media.controller.GalleryAdd
     737 *
    734738 * A state for selecting more images to add to a gallery.
    735739 *
     
    820824
    821825},{"./library.js":10}],8:[function(require,module,exports){
     826/*globals wp */
     827
    822828/**
    823829 * wp.media.controller.GalleryEdit
     
    23182324
    23192325},{"./view.js":71}],19:[function(require,module,exports){
    2320 /*globals _ */
     2326/*globals _, jQuery */
    23212327
    23222328/**
     
    23982404
    23992405},{"./view.js":71}],20:[function(require,module,exports){
     2406/*globals wp */
     2407
    24002408/**
    24012409 * wp.media.view.AttachmentFilters.All
     
    25332541
    25342542},{"../attachment-filters.js":19}],22:[function(require,module,exports){
     2543/*globals wp */
     2544
    25352545/**
    25362546 * wp.media.view.AttachmentFilters.Uploaded
     
    33803390
    33813391},{"../attachment.js":23}],29:[function(require,module,exports){
    3382 /*globals wp, _ */
     3392/*globals wp, _, jQuery */
    33833393
    33843394/**
     
    41764186
    41774187},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
    4178 /*globals _, Backbone */
     4188/*globals _, Backbone, jQuery */
    41794189
    41804190/**
     
    43894399/*globals wp, _ */
    43904400
     4401/**
     4402 * wp.media.view.EditImage
     4403 *
     4404 * @class
     4405 * @augments wp.media.View
     4406 * @augments wp.Backbone.View
     4407 * @augments Backbone.View
     4408 */
    43914409var View = require( './view.js' ),
    43924410    EditImage;
     
    45074525
    45084526},{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){
     4527/*globals wp */
     4528
    45094529/**
    45104530 * wp.media.view.EmbedImage
     
    45404560
    45414561},{"../settings/attachment-display.js":58}],38:[function(require,module,exports){
    4542 /*globals wp, _ */
     4562/*globals wp, _, jQuery */
    45434563
    45444564/**
     
    46094629
    46104630},{"../settings.js":57}],39:[function(require,module,exports){
    4611 /*globals wp, _ */
     4631/*globals wp, _, jQuery */
    46124632
    46134633/**
     
    49134933
    49144934},{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){
     4935/*globals wp */
     4936
    49154937/**
    49164938 * wp.media.view.MediaFrame.ImageDetails
     
    60526074
    60536075},{"./view.js":71}],46:[function(require,module,exports){
    6054 /*globals wp, _ */
     6076/*globals wp, _, jQuery */
    60556077
    60566078/**
     
    62236245},{"./settings/attachment-display.js":58}],47:[function(require,module,exports){
    62246246/**
     6247 * wp.media.view.Label
     6248 *
    62256249 * @class
    62266250 * @augments wp.media.View
     
    65056529
    65066530},{"./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){
     6531/*globals jQuery */
     6532
    65076533/**
    65086534 * wp.media.view.MenuItem
     
    66956721
    66966722},{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){
    6697 /*globals wp, _ */
     6723/*globals wp, _, jQuery */
    66986724
    66996725/**
     
    70797105
    70807106},{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){
     7107/*globals wp */
     7108
    70817109/**
    70827110 * wp.media.view.Search
     
    74347462
    74357463},{"../settings.js":57}],59:[function(require,module,exports){
     7464/*globals wp */
     7465
    74367466/**
    74377467 * wp.media.view.Settings.Gallery
     
    74547484
    74557485},{"../settings.js":57}],60:[function(require,module,exports){
     7486/*globals wp */
     7487
    74567488/**
    74577489 * wp.media.view.Settings.Playlist
     
    81638195
    81648196},{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){
     8197/*globals wp */
     8198
    81658199/**
    81668200 * wp.media.view.UploaderStatusError
  • trunk/src/wp-includes/js/media/views/attachment-filters.js

    r31491 r31492  
    1 /*globals _ */
     1/*globals _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/attachment-filters/all.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.AttachmentFilters.All
  • trunk/src/wp-includes/js/media/views/attachment-filters/uploaded.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.AttachmentFilters.Uploaded
  • trunk/src/wp-includes/js/media/views/attachment/details-two-column.js

    r31490 r31492  
    22
    33/**
     4 * wp.media.view.Attachment.Details.TwoColumn
     5 *
    46 * A similar view to media.view.Attachment.Details
    57 * for use in the Edit Attachment modal.
  • trunk/src/wp-includes/js/media/views/attachments.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/button-group.js

    r31491 r31492  
    1 /*globals _, Backbone */
     1/*globals _, Backbone, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/button/delete-selected-permanently.js

    r31490 r31492  
    11/**
     2 * wp.media.view.DeleteSelectedPermanentlyButton
     3 *
    24 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
    35 *
  • trunk/src/wp-includes/js/media/views/button/delete-selected.js

    r31490 r31492  
     1/*globals wp */
     2
    13/**
     4 * wp.media.view.DeleteSelectedButton
     5 *
    26 * A button that handles bulk Delete/Trash logic
    37 *
  • trunk/src/wp-includes/js/media/views/button/select-mode-toggle.js

    r31399 r31492  
     1/*globals wp */
     2
     3/**
     4 * wp.media.view.SelectModeToggleButton
     5 *
     6 * @class
     7 * @augments wp.media.view.Button
     8 * @augments wp.media.View
     9 * @augments wp.Backbone.View
     10 * @augments Backbone.View
     11 */
    112var Button = require( '../button.js' ),
    213    l10n = wp.media.view.l10n,
  • trunk/src/wp-includes/js/media/views/edit-image-details.js

    r31491 r31492  
    11/*globals wp, _ */
    22
     3/**
     4 * wp.media.view.EditImage.Details
     5 *
     6 * @class
     7 * @augments wp.media.view.EditImage.Details
     8 * @augments wp.media.View
     9 * @augments wp.Backbone.View
     10 * @augments Backbone.View
     11 */
    312var View = require( './view.js' ),
    413    EditImage = wp.media.view.EditImage,
  • trunk/src/wp-includes/js/media/views/edit-image.js

    r31491 r31492  
    11/*globals wp, _ */
    22
     3/**
     4 * wp.media.view.EditImage
     5 *
     6 * @class
     7 * @augments wp.media.View
     8 * @augments wp.Backbone.View
     9 * @augments Backbone.View
     10 */
    311var View = require( './view.js' ),
    412    EditImage;
  • trunk/src/wp-includes/js/media/views/embed/image.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.EmbedImage
  • trunk/src/wp-includes/js/media/views/embed/link.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/embed/url.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/frame/edit-attachments.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
     4 * wp.media.view.MediaFrame.EditAttachments
     5 *
    46 * A frame for editing the details of a specific media item.
    57 *
  • trunk/src/wp-includes/js/media/views/frame/image-details.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.MediaFrame.ImageDetails
  • trunk/src/wp-includes/js/media/views/image-details.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/label.js

    r31385 r31492  
    11/**
     2 * wp.media.view.Label
     3 *
    24 * @class
    35 * @augments wp.media.View
  • trunk/src/wp-includes/js/media/views/menu-item.js

    r31385 r31492  
     1/*globals jQuery */
     2
    13/**
    24 * wp.media.view.MenuItem
  • trunk/src/wp-includes/js/media/views/modal.js

    r31491 r31492  
    1 /*globals wp, _ */
     1/*globals wp, _, jQuery */
    22
    33/**
  • trunk/src/wp-includes/js/media/views/search.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.Search
  • trunk/src/wp-includes/js/media/views/settings/gallery.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.Settings.Gallery
  • trunk/src/wp-includes/js/media/views/settings/playlist.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.Settings.Playlist
  • trunk/src/wp-includes/js/media/views/uploader/status-error.js

    r31385 r31492  
     1/*globals wp */
     2
    13/**
    24 * wp.media.view.UploaderStatusError
Note: See TracChangeset for help on using the changeset viewer.