jashkenas/coffee-script — Issue #2125: _this Problem.
Author: marxus85
Created: 2012-02-19 15:31:27+00:00
State: open

this explains itself.

CoffeScript:
---------------
_thisProblem = =>
_this = 'Problem'
alert @

_thisProblem()

---------------

JavaScript:
---------------
var _thisProblem,
_this = this;

_thisProblem = function() {
_this = 'Problem';
return alert(_this);
};

_thisProblem();

---------------

this may cause problems for users that are unaware of it.