Comparing version 0.6.3 to 0.6.4
@@ -331,11 +331,16 @@ "use strict"; | ||
var reusableEmptyArray = []; | ||
// Removes all children from this entry and returns an array of the | ||
// removed children. | ||
function forgetChildren(entry) { | ||
var children = []; | ||
var children = reusableEmptyArray; | ||
entry.childValues.forEach(function (value, child) { | ||
forgetChild(entry, child); | ||
children.push(child); | ||
}); | ||
if (entry.childValues.size > 0) { | ||
children = []; | ||
entry.childValues.forEach(function (value, child) { | ||
forgetChild(entry, child); | ||
children.push(child); | ||
}); | ||
} | ||
@@ -342,0 +347,0 @@ // After we forget all our children, this.dirtyChildren must be empty |
{ | ||
"name": "optimism", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"author": "Ben Newman <ben@benjamn.com>", | ||
@@ -5,0 +5,0 @@ "description": "Composable reactive caching with efficient invalidation.", |
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
19170
516