blikblum / tinybind

Lightweight and powerful data binding + templating solution
http://blikblum.github.io/tinybind/
MIT License
79 stars 14 forks source link

Clearing array by .length= 0 not working #2

Closed naranjamecanica closed 6 years ago

naranjamecanica commented 7 years ago

Hi I'm using your fork in a project (thanks!) and I found out that setting the length to 0 of an array kills bindings and does not update the view.

See: https://jsfiddle.net/qx5091vd/2/

Is this something that can be implemented or is using one of the array methods the only way to go?

blikblum commented 7 years ago

Its a limitation. See vue docs https://vuejs.org/v2/guide/list.html#Caveats

Vue uses a similar techniq

naranjamecanica commented 6 years ago

Thanks for the info!