This project is read-only.

Naive "this" capture with arrow functions

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

In short, arrow functions always (if needed) capture


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.


Oct 20, 2012 at 12:33 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.