Hi,
in the most recent version from git (date 2013-09-10), databinding seems to break if one removes an element from the DOM and reattaches it afterwards.
Tested in current versions of all evergreen browsers (especially chrome 30.0.1599.69 m).
Following fiddle demonstrates the problem: http://jsfiddle.net/Ysasn/1/
It contains a button that switches between two instances of an element that contains some basic databinding (the elements simply mirror the input of a textbox to a span; each button click removes the previously displayed instance from the DOM and (re)attaches the other instance of this databinding-test-element).
The databinding works fine for the first two clicks, when the my-binding-test elements get attached to the DOM the first time. BUT, after having clicked a third time (when the first my-binding-test instance gets reattached to the DOM) the data-binding is broken and doesn't propagate any changes anymore. Of course, this demo works fine, when reinstantiating the my-binding-test elements on each button click.
Don't hestitate to ask if you need any further information.
Regards,
André
Hi,
in the most recent version from git (date 2013-09-10), databinding seems to break if one removes an element from the DOM and reattaches it afterwards.
Tested in current versions of all evergreen browsers (especially chrome 30.0.1599.69 m).
Following fiddle demonstrates the problem: http://jsfiddle.net/Ysasn/1/
It contains a button that switches between two instances of an element that contains some basic databinding (the elements simply mirror the input of a textbox to a span; each button click removes the previously displayed instance from the DOM and (re)attaches the other instance of this databinding-test-element).
The databinding works fine for the first two clicks, when the my-binding-test elements get attached to the DOM the first time. BUT, after having clicked a third time (when the first my-binding-test instance gets reattached to the DOM) the data-binding is broken and doesn't propagate any changes anymore. Of course, this demo works fine, when reinstantiating the my-binding-test elements on each button click.
Don't hestitate to ask if you need any further information.
Regards,
André