4 ms·
Note how you haven't used the keyword `this` inside the closure. What you've written is functionally equivalent to the technique I described, assigning the `thi
by fh 18y ago
Note how you haven't used the keyword `this` inside the closure. What you've written is functionally equivalent to the technique I described, assigning the `this` object to a temporary variable. The only difference is that you bind it with a lambda instead of a `var`.
- axod 18y agoI don't use the keyword this inside the closure, but inside the function dosomething() I can happily use "this".