When does the “fat arrow” (=>) bind to “this” instance
The fat arrow can be used in different settings but it somehow doesn't always bind to the instance I want. The fat arrow binds at 3 occasions when declaring a method when declaring a function within a method when declaring a function in global context 1. When declaring a method When the Coffeescript compiler encouters the following syntactical pattern within a class declaration class A somemethod: (paramlist) => This will yield the following code within the constructor of class A this.somemethod = __bind(this.somemethod, this); That is the definition for that instance is overwriting the