databind
databind copied to clipboard
Re-Binding after unbind not working
I tried your example project, and faced this issue.
Steps to reproduce: (In example project)
1.Select the 1st element (key: k1.k11) and click on bind
2.Now Click on unbind
3.Again click on bind
4.Now type in the text-box.
As the DOM and Model are bound, the changes should be reflected on either side.
Issue: Its not happening as expected.
On chrome49 on Linux Debian I can not reproduce. However. Since key k1.k11 is already bound, binding it again will leave two handlers active, which is visible when you edit text. Unbind, will work however. On next bind however, there are still two handlers active. So currently, databind can not really cope with binding twice I guess...
@zevero Excellent catch. My initial thought was to allow multi bindings for same key as multiple actors might want to act on same event. WDYT?