HN2
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
streptomycin
on Sept 20, 2018
|
parent
|
context
|
favorite
| on:
Idle Until Urgent
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)`.
taneq
on Sept 20, 2018
[–]
Presumably if you were going to write the latter, you'd also write your init() functions accordingly?
mason55
on Sept 20, 2018
|
parent
[–]
If you didn’t write the init functions you don’t have a choice
taneq
on Sept 20, 2018
|
root
|
parent
[–]
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: