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

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-03-05 04:11:23 +00:00
parent 07abae914e
commit 26875b75a3
8 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/*globals wp, _, Backbone, jQuery */
/*globals wp, _, Backbone */
/**
* wp.media.controller.Embed
@ -23,7 +23,7 @@
*/
var State = require( './state.js' ),
l10n = wp.media.view.l10n,
$ = jQuery,
$ = Backbone.$,
Embed;
Embed = State.extend({

View File

@ -597,7 +597,7 @@ EditAttachments = MediaFrame.extend({
module.exports = EditAttachments;
},{"../../controllers/edit-attachment-metadata.js":1,"../attachment/details-two-column.js":4,"../edit-image-details.js":8}],10:[function(require,module,exports){
/*globals wp, _, jQuery, Backbone */
/*globals wp, _, Backbone */
/**
* wp.media.view.MediaFrame.Manage
@ -621,7 +621,7 @@ var MediaFrame = wp.media.view.MediaFrame,
Router = require( '../../routers/manage.js' ),
$ = jQuery,
$ = Backbone.$,
Manage;
Manage = MediaFrame.extend({

View File

@ -232,7 +232,7 @@ $(window).on('unload', function(){
});
},{"./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){
/*globals wp, _, jQuery, Backbone */
/*globals wp, _, Backbone */
/**
* wp.media.model.Attachment
@ -240,7 +240,7 @@ $(window).on('unload', function(){
* @class
* @augments Backbone.Model
*/
var $ = jQuery,
var $ = Backbone.$,
Attachment;
Attachment = Backbone.Model.extend({

View File

@ -1,4 +1,4 @@
/*globals wp, _, jQuery, Backbone */
/*globals wp, _, Backbone */
/**
* wp.media.model.Attachment
@ -6,7 +6,7 @@
* @class
* @augments Backbone.Model
*/
var $ = jQuery,
var $ = Backbone.$,
Attachment;
Attachment = Backbone.Model.extend({

View File

@ -467,7 +467,7 @@ EditImage = State.extend({
module.exports = EditImage;
},{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){
/*globals wp, _, Backbone, jQuery */
/*globals wp, _, Backbone */
/**
* wp.media.controller.Embed
@ -492,7 +492,7 @@ module.exports = EditImage;
*/
var State = require( './state.js' ),
l10n = wp.media.view.l10n,
$ = jQuery,
$ = Backbone.$,
Embed;
Embed = State.extend({
@ -4185,7 +4185,7 @@ Selection = Attachments.extend({
module.exports = Selection;
},{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){
/*globals _, Backbone, jQuery */
/*globals _, Backbone */
/**
* wp.media.view.ButtonGroup
@ -4197,7 +4197,7 @@ module.exports = Selection;
*/
var View = require( './view.js' ),
Button = require( './button.js' ),
$ = jQuery,
$ = Backbone.$,
ButtonGroup;
ButtonGroup = View.extend({
@ -7242,7 +7242,7 @@ Selection = View.extend({
module.exports = Selection;
},{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){
/*globals _, jQuery, Backbone */
/*globals _, Backbone */
/**
* wp.media.view.Settings
@ -7253,7 +7253,7 @@ module.exports = Selection;
* @augments Backbone.View
*/
var View = require( './view.js' ),
$ = jQuery,
$ = Backbone.$,
Settings;
Settings = View.extend({

View File

@ -1,4 +1,4 @@
/*globals _, Backbone, jQuery */
/*globals _, Backbone */
/**
* wp.media.view.ButtonGroup
@ -10,7 +10,7 @@
*/
var View = require( './view.js' ),
Button = require( './button.js' ),
$ = jQuery,
$ = Backbone.$,
ButtonGroup;
ButtonGroup = View.extend({

View File

@ -1,4 +1,4 @@
/*globals wp, _, jQuery, Backbone */
/*globals wp, _, Backbone */
/**
* wp.media.view.MediaFrame.Manage
@ -22,7 +22,7 @@ var MediaFrame = wp.media.view.MediaFrame,
Router = require( '../../routers/manage.js' ),
$ = jQuery,
$ = Backbone.$,
Manage;
Manage = MediaFrame.extend({

View File

@ -1,4 +1,4 @@
/*globals _, jQuery, Backbone */
/*globals _, Backbone */
/**
* wp.media.view.Settings
@ -9,7 +9,7 @@
* @augments Backbone.View
*/
var View = require( './view.js' ),
$ = jQuery,
$ = Backbone.$,
Settings;
Settings = View.extend({