4 ms·
His model (Friends Collection) is doing view duty. Shouldnt the addFriendLi method be apart of the controller binding the Friend(s) model and AppView view?
by emehrkay 16y ago
His model (Friends Collection) is doing view duty. Shouldnt the addFriendLi method be apart of the controller binding the Friend(s) model and AppView view?
- thomasdavis 16y agoI looked back at the code and you're right so I patched it up. Thanks! Anyone wanting to see what I was doing wrong can go to the link below https://github.com/thomasdavis/thomasdavis.github.com/blob/8eee72d8811c9f22e79cef5bd3551ed9c3683704/examples/backbone-101/index.html https://github.com/thomasdavis/thomasdavis.github.com/blob/8...
- wfarr 16y agoYeah, that ought to be in the controller or provided in a helper method outside the model.
- thomasdavis 16y agoBackbone Views and standard MVC controllers are synonymous so I placed it in the Backbone View.
- wfarr 16y agoAh! Thanks for clearing that up. I haven't gotten around to dabbling in Backbone yet.