WordPress.org

Make WordPress Core

Changeset 31618


Ignore:
Timestamp:
03/05/2015 04:11:23 AM (5 years ago)
Author:
wonderboymusic
Message:

Media modules: set $ to Backbone.$, instead of jQuery, so fewer globals are imported.

See #28510.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media/controllers/embed.js

    r31491 r31618  
    1 /*globals wp, _, Backbone, jQuery */
     1/*globals wp, _, Backbone */
    22
    33/**
     
    2424var State = require( './state.js' ),
    2525    l10n = wp.media.view.l10n,
    26     $ = jQuery,
     26    $ = Backbone.$,
    2727    Embed;
    2828
  • trunk/src/wp-includes/js/media/grid.js

    r31568 r31618  
    598598
    599599},{"../../controllers/edit-attachment-metadata.js":1,"../attachment/details-two-column.js":4,"../edit-image-details.js":8}],10:[function(require,module,exports){
    600 /*globals wp, _, jQuery, Backbone */
     600/*globals wp, _, Backbone */
    601601
    602602/**
     
    622622    Router = require( '../../routers/manage.js' ),
    623623
    624     $ = jQuery,
     624    $ = Backbone.$,
    625625    Manage;
    626626
  • trunk/src/wp-includes/js/media/models.js

    r31491 r31618  
    233233
    234234},{"./models/attachment.js":2,"./models/attachments.js":3,"./models/post-image.js":4,"./models/query.js":5,"./models/selection.js":6}],2:[function(require,module,exports){
    235 /*globals wp, _, jQuery, Backbone */
     235/*globals wp, _, Backbone */
    236236
    237237/**
     
    241241 * @augments Backbone.Model
    242242 */
    243 var $ = jQuery,
     243var $ = Backbone.$,
    244244    Attachment;
    245245
  • trunk/src/wp-includes/js/media/models/attachment.js

    r31491 r31618  
    1 /*globals wp, _, jQuery, Backbone */
     1/*globals wp, _, Backbone */
    22
    33/**
     
    77 * @augments Backbone.Model
    88 */
    9 var $ = jQuery,
     9var $ = Backbone.$,
    1010    Attachment;
    1111
  • trunk/src/wp-includes/js/media/views.js

    r31494 r31618  
    468468
    469469},{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
    470 /*globals wp, _, Backbone, jQuery */
     470/*globals wp, _, Backbone */
    471471
    472472/**
     
    493493var State = require( './state.js' ),
    494494    l10n = wp.media.view.l10n,
    495     $ = jQuery,
     495    $ = Backbone.$,
    496496    Embed;
    497497
     
    41864186
    41874187},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
    4188 /*globals _, Backbone, jQuery */
     4188/*globals _, Backbone */
    41894189
    41904190/**
     
    41984198var View = require( './view.js' ),
    41994199    Button = require( './button.js' ),
    4200     $ = jQuery,
     4200    $ = Backbone.$,
    42014201    ButtonGroup;
    42024202
     
    72437243
    72447244},{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
    7245 /*globals _, jQuery, Backbone */
     7245/*globals _, Backbone */
    72467246
    72477247/**
     
    72547254 */
    72557255var View = require( './view.js' ),
    7256     $ = jQuery,
     7256    $ = Backbone.$,
    72577257    Settings;
    72587258
  • trunk/src/wp-includes/js/media/views/button-group.js

    r31492 r31618  
    1 /*globals _, Backbone, jQuery */
     1/*globals _, Backbone */
    22
    33/**
     
    1111var View = require( './view.js' ),
    1212    Button = require( './button.js' ),
    13     $ = jQuery,
     13    $ = Backbone.$,
    1414    ButtonGroup;
    1515
  • trunk/src/wp-includes/js/media/views/frame/manage.js

    r31568 r31618  
    1 /*globals wp, _, jQuery, Backbone */
     1/*globals wp, _, Backbone */
    22
    33/**
     
    2323    Router = require( '../../routers/manage.js' ),
    2424
    25     $ = jQuery,
     25    $ = Backbone.$,
    2626    Manage;
    2727
  • trunk/src/wp-includes/js/media/views/settings.js

    r31491 r31618  
    1 /*globals _, jQuery, Backbone */
     1/*globals _, Backbone */
    22
    33/**
     
    1010 */
    1111var View = require( './view.js' ),
    12     $ = jQuery,
     12    $ = Backbone.$,
    1313    Settings;
    1414
Note: See TracChangeset for help on using the changeset viewer.