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

Commit

Permalink
Allow discardChanges to be called before open
Browse files Browse the repository at this point in the history
Polymer bindProperties needs to be able to get the value of the observable before handing it into Observer.defineComputedProperty().

I'm not really sure this is conceptually the right thing, but it gets polymer working again.

R=arv
BUG=

Review URL: https://codereview.appspot.com/39440046
  • Loading branch information
rafaelw committed Dec 20, 2013
1 parent ae17188 commit d73f395
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,6 @@
},

discardChanges: function() {
if (this.state_ != OPENED)
throw Error('Observer is not open');

if (hasObserve) {
this.reporting_ = false;
Object.deliverChangeRecords(this.boundInternalCallback_);
Expand Down

0 comments on commit d73f395

Please sign in to comment.