Hacker News new | ask | show | jobs
by FuzzyDunlop 4998 days ago
There is an easy way to get round this problem, but it is in my opinion a hack. One gets around this problem by assigning a varialbe (by convention, it is named that) to this inside the function

Or use `bind` instead.

1 comments

or use call or apply when invoking innerFunction, which he describes later in the article