HN2new | past | comments | ask | show | jobs | submitlogin

The 2nd style will not work if those functions internally use `this` and were not previously manually bound to their parent objects, like `drawer.init.bind(drawer)`.


Presumably if you were going to write the latter, you'd also write your init() functions accordingly?


If you didn’t write the init functions you don’t have a choice


If we were talking about a different situation then we'd be discussing a different article.




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

Search: