googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

Bindings to compound bindings that are disposed do not dispose the compound binding #76

Closed sorvell closed 11 years ago

sorvell commented 11 years ago

This creates an effective memory leak. Given a node with markup like this:

<div style="background: {{background}};"></div>

The result is a binding to the style attribute where the model is a compound binding. If the binding on the style attribute is subsequently unbound, the compound binding model is not disposed of and therefore never gets a chance to clean up its observer.

rafaelw commented 11 years ago

This should be fixed: https://github.com/Polymer/mdv/commit/361fa3e67c3bd63804122b80df2cf017afe1a02a Please verify.