googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 56 forks source link

Observe not working while updating the model #107

Closed xaviercochard closed 11 years ago

xaviercochard commented 11 years ago

The Dom is not updated when the model is updated (see attached snapshot). However, the model is correctly updated when any of the input fields are updated.

Notes:

Version:

capture

rafaelw commented 11 years ago

You need to either:

1) Have chrome://flags enable "Experimental JavaScript" (which enables Object.observe)

or

2) Call Platform.performMicrotaskCheckpoint() when data may-have changed. This triggers the Object.observe polyfil to dirty-check the observed data.

Please re-open if this isn't clear, or doesn't solve your problem