Hacker News new | ask | show | jobs
by theitgirl 5498 days ago
Awesome tutorial. I have been experimenting with Backbone for a few weeks now. I did not understand the point of _.bindAll(this, ..) in initialize till now :)

It would help if the sections of code that you add in each step were highlighted somehow. I definitely like the step-by-step approach.

2 comments

I built http://www.facebook.com/nikerunning?sk=app_151033471623290 with Backbone.js. Still trying to get my head around underscore and controllers.
Cool thanks. I'm not sure docco, the document generator I'm using, allows that type of highlighting. (anyone?)

But to some extent the comments on the left already point out new sections of code - only new material gets those comments.

Do we really need to get all methods with 'this' bindAll'ed? I'm using it only for methods who get callbacked.