Say I have a static function that uses fat arrows (to keep context):
The following code is produced:
var Test;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Test = (function() {
function Test() {
this.Test = __bind(this.Test, this);
}
Test.foo = function() {
return "ga";
};
return Test;
})();
When instead this should be produced:
var Test;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Test = (function() {
function Test() {}
Test.foo = __bind(function() {
return "ga";
}, Test);
return Test;
})();
Say I have a static function that uses fat arrows (to keep context):
The following code is produced:
When instead this should be produced: