Collection#set uses this.model.prototype.idAttribute to test if it can update models in place. If this.model is actually a factory function wrapping Model.create, then this.model.prototype.idAttribute is undefined, so set decides to remove every model then add them back. This causes a race condition in my ListView, and it trashes everything.
Collection#setusesthis.model.prototype.idAttributeto test if it can update models in place. Ifthis.modelis actually a factory function wrappingModel.create, thenthis.model.prototype.idAttributeis undefined, sosetdecides toremoveevery model thenaddthem back. This causes a race condition in my ListView, and it trashes everything.