googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

Bindings get stuck after several updates #162

Closed esprehn closed 10 years ago

esprehn commented 10 years ago

Chrome 35.0.1888.0 (Official Build 256779) canary Blink r169047 Using Object.observe

I'm just noticing this, but I have a big set of elements that create a view on the page that pass objects down the tree through property bindings in polymer. When I want to refresh the page I assign all new objects at the top of the component hierarchy.

After the second assignment things stop updating properly and I'm stuck with empty binding values. I would expect that the new object graph assigned at the top would propagate across the whole view.

esprehn commented 10 years ago

I've narrowed this down to having

<template if="{{ value }}">

at several levels of the tree. It seems like the if you have the

<template if>

around a

<template repeat>

and you have lots of levels of the tree things stop working after a few updates.

esprehn commented 10 years ago

Here's the smallest reduction I can get:

http://pastie.org/pastes/8917801/text

What's crazy is that it depends on having tokenList,