databind icon indicating copy to clipboard operation
databind copied to clipboard

Re-Binding after unbind not working

Open ajayhn1986 opened this issue 10 years ago • 2 comments

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. 2014-07-31_144124

ajayhn1986 avatar Jul 31 '14 09:07 ajayhn1986

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 avatar Mar 16 '16 10:03 zevero

@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?

grnadav avatar Mar 21 '16 16:03 grnadav