4 ms·
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 :)
by theitgirl 15y 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.
- arturadib 15y agoCool 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.
- lapusta 15y agoDo we really need to get all methods with 'this' bindAll'ed? I'm using it only for methods who get callbacked.
- Precambria 15y agoI built http://www.facebook.com/nikerunning?sk=app_151033471623290 http://www.facebook.com/nikerunning?sk=app_151033471623290 with Backbone.js. Still trying to get my head around underscore and controllers.