I have a collection binding which renders dozens of Backbone.Epoxy.Models.
If the user updates the search parameters, I use collection.fetch({reset: true}) to fetch new models. (Note: without reset: true I get errors when Backbone tries to merge the models. But I don't need this anyway, reset is fine).
I guess since reset() is used, epoxy will internally use clean to remove all views. Right?
Will this clean up/destroy the model as well? I want the model to be completely cleaned up as well (remove all listeners etc.). I'm asking because after using fetch a second time, the app slowly gets unresponsive.
Edit: Would this be enough before calling reset (I don't need to remotely DELETE the model)?
I have a
collection
binding which renders dozens ofBackbone.Epoxy.Model
s.If the user updates the search parameters, I use
collection.fetch({reset: true})
to fetch new models. (Note: withoutreset: true
I get errors when Backbone tries to merge the models. But I don't need this anyway, reset is fine).I guess since
reset()
is used, epoxy will internally useclean
toremove
all views. Right?Will this clean up/destroy the model as well? I want the model to be completely cleaned up as well (remove all listeners etc.). I'm asking because after using
fetch
a second time, the app slowly gets unresponsive.Edit: Would this be enough before calling
reset
(I don't need to remotely DELETE the model)?