top | item 9739392

(no title)

towelguy | 10 years ago

Yeah like the others said it binds this to the scope where it was defined. So something like this works as one would expect:

    setTimeout(() => this.someMethod(), 1000);

discuss

order