Add jquery dependency.

Request just won't be sent If there is no global `$`, adding it to amd dependency for this case
This commit is contained in:
Dima Bildin 2014-12-01 16:25:42 +02:00
parent 2adf33e207
commit 9b815b7c7d

View File

@ -10,12 +10,12 @@
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['underscore', 'backbone'], factory);
define(['underscore', 'jquery', 'backbone'], factory);
} else {
// Browser globals
factory(_, Backbone);
factory(_, $, Backbone);
}
}(this, function(_, Backbone){
}(this, function(_, $, Backbone){
// Clone the original Backbone.Model.prototype
var backboneModelClone = _.clone( Backbone.Model.prototype );