Began replacing calls to helpers with calls to memoized functions

This commit is contained in:
Stefan Zermatten
2015-06-18 15:14:37 +02:00
parent a034cbf30e
commit 86c934e8ac
9 changed files with 58 additions and 48 deletions

View File

@@ -24,7 +24,7 @@ function CacheObject(func, address, args, cache, context){
if (!computation.firstRun && !self.dep.hasDependents()){
computation.stop();
delete cache[address];
console.log("Nothing depends on '" + address + "', deleting");
return;
}
//call the expensive function
var newValue = func.apply(context, args);