Comparing version 0.3.31 to 0.3.32
@@ -68,2 +68,5 @@ // Generated by CoffeeScript 1.6.2 | ||
} | ||
if (!result) { | ||
options.model._memos.replace(fieldHash, void 0); | ||
} | ||
options.model.reset(_this._map.call(model, result), _this.field.path); | ||
@@ -70,0 +73,0 @@ model._cache.store(_this._getPayloadData(payload, false)); |
@@ -39,2 +39,13 @@ // Generated by CoffeeScript 1.6.2 | ||
/* | ||
*/ | ||
MemoDictionary.prototype.replace = function(key, hash) { | ||
if (!this._memos[key]) { | ||
return; | ||
} | ||
return this._memos[key] = hash; | ||
}; | ||
return MemoDictionary; | ||
@@ -41,0 +52,0 @@ |
{ | ||
"name": "linen", | ||
"version": "0.3.31", | ||
"version": "0.3.32", | ||
"description": "Linen (line-in) maps API's to [bindable](/classdojo/bindable.js) `objects`, and `collections`. At [classdojo](http://classdojo.com), we use `linen` to abstract our API from front-end, so we don't necessarily depend on any sort of API while developing new components. This allows us to rapidly build prototypes which can be wired up later.", | ||
@@ -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
8118091
160
243464