If I call Backbone.Collection.reset() will it destroy() each model in the collection or are they still held in memory?
If I call Backbone.Collection.reset() will it destroy() each model in the collection or are
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It does not call
.destroy()for each model, it would be odd.. Thedestroy()method calls aDELETEajax request usually and.reset()does nothing with syncing data to server, it clears the collection, so if the collection was the only place models were stored, we can say they not still held in memory