Comparing version 0.2.2 to 0.2.3
@@ -947,8 +947,7 @@ // Generated by CoffeeScript 1.4.0 | ||
Collection.prototype.add = function(models, options) { | ||
var _this = this; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
if (this.context) { | ||
models = _.isArray(models) ? models.slice() : [models]; | ||
_.each(models, function(file) { | ||
return file.context = _this.context; | ||
}); | ||
options.context = this.context; | ||
} | ||
@@ -955,0 +954,0 @@ return Collection.__super__.add.apply(this, arguments); |
@@ -956,8 +956,7 @@ /* | ||
Collection.prototype.add = function(models, options) { | ||
var _this = this; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
if (this.context) { | ||
models = _.isArray(models) ? models.slice() : [models]; | ||
_.each(models, function(file) { | ||
return file.context = _this.context; | ||
}); | ||
options.context = this.context; | ||
} | ||
@@ -964,0 +963,0 @@ return Collection.__super__.add.apply(this, arguments); |
@@ -957,8 +957,7 @@ /* | ||
Collection.prototype.add = function(models, options) { | ||
var _this = this; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
if (this.context) { | ||
models = _.isArray(models) ? models.slice() : [models]; | ||
_.each(models, function(file) { | ||
return file.context = _this.context; | ||
}); | ||
options.context = this.context; | ||
} | ||
@@ -965,0 +964,0 @@ return Collection.__super__.add.apply(this, arguments); |
{ "name": "highbrow" | ||
, "version": "0.2.2" | ||
, "version": "0.2.3" | ||
, "description": "A Backbone Base Framework" | ||
@@ -4,0 +4,0 @@ , "main": "lib/highbrow.js" |
Sorry, the diff of this file is not supported yet
323353
5497