Fixing Lost `this` Context in CoffeeScript Class Callbacks
When a CoffeeScript class method loses its instance context in a callback, `this` stops pointing to the instance. Use the fat arrow operator to bind it lexically.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
When a CoffeeScript class method loses its instance context in a callback, `this` stops pointing to the instance. Use the fat arrow operator to bind it lexically.