From 5b237da0c32fc6653cba4ba8e4125ca71bb2a29b Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Tue, 14 Jan 2014 14:10:03 -0800 Subject: [PATCH] remove unused isolateObservers optimization --- src/observe.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/observe.js b/src/observe.js index 5fa82a1..9c00bee 100644 --- a/src/observe.js +++ b/src/observe.js @@ -542,9 +542,8 @@ var lastObservedSet; - function getObservedSet(observer, obj, isolateObservers) { - if (isolateObservers || !lastObservedSet || - lastObservedSet.object !== obj) { + function getObservedSet(observer, obj) { + if (!lastObservedSet || lastObservedSet.object !== obj) { lastObservedSet = observedSetCache.pop() || newObservedSet(); lastObservedSet.object = obj; } @@ -882,10 +881,9 @@ } }); - function CompoundObserver(isolateObservers) { + function CompoundObserver() { Observer.call(this); - this.isolateObservers_ = isolateObservers; this.value_ = []; this.directObserver_ = undefined; this.observed_ = []; @@ -923,8 +921,7 @@ } if (needsDirectObserver) - this.directObserver_ = getObservedSet(this, object, - this.isolateObservers_); + this.directObserver_ = getObservedSet(this, object); }, closeObservers_: function() {