0

If I call model.destroy, and my model has nested backbone models and/or plain JS objects, does backbone take care of their destroys as well, or will I somehow have 'dangling' objects?

From the annotated source it's not immediately obvious to me. Thanks for help.

2
  • Why would any api presume to know what properties of your object to kill off when you remove that object from some collection? Commented Oct 15, 2011 at 23:47
  • You're right what I really meant was when I call model.destroy, not what I originally wrote (which was collection.remove(model)). I updated the question. Commented Oct 16, 2011 at 4:28

1 Answer 1

1

No, Backbone will not do anything more than send a delete request to the server for that one resource.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah I figured through experimentation and logically it makes sense too...I'll accept your answer to close the question!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.