by gryzzly · 14y ago · 0 comments
Could you (or anyone else) elaborate on how would you refactor storing references to model id's in DOM?
How do I get the proper model instance in my event handler without using attributes? If I have collection view that renders a list, for example. What are the other options I even have then?
Thanks!
EDIT: This way if you update that one model, you're only calling one view's render method. Each view sets up it's own bindings, and when the view is removed, it can remove just the bindings on itself.