Closed krisnye closed 7 years ago
current output is a __bind method and this:
__bind(function() {}, this)
desired output with a new compiler option set would be this:
function(){}.bind(this)
CoffeeScript 2 targets ES2015. Part of its goal is to remove old shims and polyfills, and use modern ES syntax wherever possible. Pull requests to help modernize are welcome, against the 2 branch.
2
current output is a __bind method and this:
__bind(function() {}, this)
desired output with a new compiler option set would be this:
function(){}.bind(this)