mikeric / rivets

Lightweight and powerful data binding.
http://rivetsjs.com
MIT License
3.23k stars 310 forks source link

Rivets re-binding rv-each with the same array #263

Open ColemanGariety opened 10 years ago

ColemanGariety commented 10 years ago

When using an rv-each-*, the passed array or function returning an array gets replaced with an array of getter/setter object.

[ { foo: 'bar' } ]

If I call unbind() and bind() again, Rivets won't bind a second time since the data has been replaced with the getter/setter/array:

[ { foo: [Getter/Setter] } ]

Is there any way I get Rivets to re-bind an each?

jhnns commented 10 years ago

Seems like a duplicate of #261

ColemanGariety commented 10 years ago

@jhnns #261 refers to the DOM elements being manipulated and unable to be re-bound. It's fixed with the linked pull request.

My ticket is for re-binding the array of data, which has bee mutated into a [Getter/Setter] deal.

jhnns commented 10 years ago

Woops, sorry!