From d73f395536788c0845109de917c9ddb3855b414b Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Thu, 19 Dec 2013 17:24:49 -0800 Subject: [PATCH] Allow discardChanges to be called before open 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 --- src/observe.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/observe.js b/src/observe.js index 2a2c973..d93e9c7 100644 --- a/src/observe.js +++ b/src/observe.js @@ -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_);