Advertisement
Guest User

Untitled

a guest
May 26th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. I needed a way to clear out a model and all of it's children, and its children's children. I simply extended `ampersand-model` and overrode its `clear` method to do so. Now I just create all my models from it to ensure they get `clear`ed all the way down.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement