rotundasoftware / backbone.collectionView

Easily render backbone.js collections. In addition to managing model views, this class supports automatic selection of models in response to clicks, reordering models via drag and drop, and more.
http://rotundasoftware.github.io/backbone.collectionView/
Other
171 stars 27 forks source link

Using "id" attribute with existing backbone models #37

Closed matthewpiatt closed 10 years ago

matthewpiatt commented 10 years ago

When I went to integrate this framework, I discovered that my backbone models that had an existing "id" attribute would disappear when sorting was turned on. Items would just disappear from collections. I changed the attribute name to something like "pageId" to get things working.

Perhaps a note should be made in the demo/docs so other people don't stumble on this.

Other than that, this is a great backbone add-on!

dgbeck commented 10 years ago

We are not aware of any issues related to models with existing ids. It sounds like it may have something to do with side effects from the comparator, but hard to say. Can you provide a reproducible test case?

dgbeck commented 10 years ago

Closing