Comparing version 0.0.35 to 0.0.37
@@ -38,2 +38,3 @@ // Generated by CoffeeScript 1.6.2 | ||
this.on("remove", this._persistRemove); | ||
this.on("reset", this._onReset); | ||
} | ||
@@ -186,3 +187,3 @@ | ||
Collection.prototype.fetch = asyngleton(true, function(callback) { | ||
Collection.prototype.fetch = asyngleton(5, function(callback) { | ||
this._fetching = []; | ||
@@ -277,2 +278,17 @@ if (this._isStatic || (this.parent && !this.parent.__isCollection && !this.parent.data._id)) { | ||
Collection.prototype._onReset = function(items) { | ||
var item, _i, _len, _results; | ||
_results = []; | ||
for (_i = 0, _len = items.length; _i < _len; _i++) { | ||
item = items[_i]; | ||
_results.push(this._persistInsert(item)); | ||
} | ||
return _results; | ||
}; | ||
/* | ||
*/ | ||
Collection.prototype._persistInsert = function(item) { | ||
@@ -279,0 +295,0 @@ var request, |
@@ -118,3 +118,3 @@ // Generated by CoffeeScript 1.6.2 | ||
LinenModel.prototype.fetch = asyngleton(true, function(next) { | ||
LinenModel.prototype.fetch = asyngleton(1000 * 5, function(next) { | ||
var request; | ||
@@ -121,0 +121,0 @@ |
{ | ||
"name": "linen", | ||
"version": "0.0.35", | ||
"version": "0.0.37", | ||
"description": "```javascript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53059
1168