Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
dont bother to push value after addObserved (happens soon after via c…
Browse files Browse the repository at this point in the history
…heck_)
  • Loading branch information
rafaelw committed Jan 14, 2014
1 parent dc7e9c2 commit 17e2e93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,8 @@
if (this.state_ != UNOPENED && this.state_ != RESETTING)
throw Error('Cannot add observers once started.');

var value = observer.open(this.deliver, this);
observer.open(this.deliver, this);
this.observed_.push(observerSentinel, observer);
this.value_.push(value);
},

startReset: function() {
Expand Down

0 comments on commit 17e2e93

Please sign in to comment.