Comparing version 0.3.1 to 0.3.2
@@ -153,4 +153,6 @@ "use strict"; | ||
// (3) this.value is usally returned very quickly, without recomputation. | ||
Ep.recomputeIfDirty = function recomputeIfDirty() { | ||
this.rememberParent(); | ||
Ep.recomputeIfDirty = function recomputeIfDirty(skipRememberParent) { | ||
if (! skipRememberParent) { | ||
this.rememberParent(); | ||
} | ||
@@ -170,3 +172,8 @@ if (this.dirty) { | ||
var oldValue = this.childValues.get(child); | ||
var newValue = child.recomputeIfDirty(); | ||
try { | ||
var newValue = child.recomputeIfDirty(true); | ||
} catch (e) { | ||
this.setDirty(); | ||
return; | ||
} | ||
@@ -173,0 +180,0 @@ if (newValue !== oldValue) { |
{ | ||
"name": "optimism", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Ben Newman <ben@benjamn.com>", | ||
@@ -5,0 +5,0 @@ "description": "Composable reactive caching with efficient invalidation.", |
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
11994
299