Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because I think it's cleaner having it as the third argument on events instead of having a large list of stuff in _.bindAll in initialize (and additionally, I've found it simpler to explain it to others, but I don't know why). I think it's just one of those subjective choices.


Agreed. Plus, bindAll [1] does quite a lot of magic under the hood that IMO is an overkill compared to passing the context object.

[1]: http://underscorejs.org/docs/underscore.html#section-52




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: