News for hackers. Stuff that matters.
Re:Idle Until Urgent by streptomycin on Thursday September 20, 2018 @08:53AM (#18031978)
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)`.
Re:Idle Until Urgent by taneq on Thursday September 20, 2018 @09:20AM (#18032187)
Presumably if you were going to write the latter, you'd also write your init() functions accordingly?
Re:Idle Until Urgent by mason55 on Thursday September 20, 2018 @09:21AM (#18032197)
If you didn’t write the init functions you don’t have a choice
Re:Idle Until Urgent by taneq on Thursday September 20, 2018 @11:19AM (#18033079)
If we were talking about a different situation then we'd be discussing a different article.