Re:Backbone.js Tutorial - by noob for noobs
by emehrkay on Sunday January 30, 2011 @08:39AM
(#2158011)
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?
[ Parent
| on HN ]
Yeah, that ought to be in the controller or provided in a helper method outside the model.
Re:Backbone.js Tutorial - by noob for noobs
by thomasdavis on Sunday January 30, 2011 @09:42AM
(#2158120)
Backbone Views and standard MVC controllers are synonymous so I placed it in the Backbone View.
Ah! Thanks for clearing that up. I haven't gotten around to dabbling in Backbone yet.
Re:Backbone.js Tutorial - by noob for noobs
by thomasdavis on Sunday January 30, 2011 @08:59AM
(#2158049)
I 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/8...