lib/assets/javascripts/backbone_extensions/include.js in backbone_extensions-0.0.5 vs lib/assets/javascripts/backbone_extensions/include.js in backbone_extensions-0.0.6
- old
+ new
@@ -1,6 +1,7 @@
-(function(Backbone) {
+(function(_, Backbone) {
+ 'use strict';
var include = {
include: function() {
var self = this;
_(arguments).chain().toArray().each(function(module) {
if (module && module.included && _(module.included).isFunction()) {
@@ -9,7 +10,7 @@
});
return this;
}
};
- Backbone.include = include;
-})(Backbone);
+ Backbone.extensions = _(Backbone.extensions || {}).extend({include: include});
+})(_, Backbone);