Naive "this" capture with arrow functions

Topics: General
Oct 19, 2012 at 6:08 PM

In short, arrow functions always (if needed) capture

this 

by assigning it to _this temporary:

var _this = this;

I think the compiler should use a different name for the temporary if _this is otherwise in scope.

 

Coordinator
Oct 19, 2012 at 11:33 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.