From dfcd412a52f22e0d5f30ee06a1fc0027b752a43d Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Sat, 21 Dec 2013 16:56:53 -0800 Subject: [PATCH] move addToAll to open() --- src/observe.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/observe.js b/src/observe.js index d9493dd..08973a1 100644 --- a/src/observe.js +++ b/src/observe.js @@ -364,8 +364,6 @@ self.internalCallback_(records); }; } - - addToAll(this); } Observer.prototype = { @@ -373,6 +371,7 @@ if (this.state_ != UNOPENED) throw Error('Observer has already been opened.'); + addToAll(this); this.callback_ = callback; this.target_ = target; this.state_ = OPENED;