https://github.com/angular/deferred/blob/master/src/Deferred.js#L3-L6 is using bind when it's not really necessary in ES6. Arrow functions should perform better once supported natively, and Traceur's implementation should already perform better due to not creating a new function.
Traceur's version of this also improves performance and avoids creating a new function, by just creating an alias variable for this and replacing this with the alias within the call.
https://github.com/angular/deferred/blob/master/src/Deferred.js#L3-L6 is using bind when it's not really necessary in ES6. Arrow functions should perform better once supported natively, and Traceur's implementation should already perform better due to not creating a new function.
Traceur's version of this also improves performance and avoids creating a new function, by just creating an alias variable for
this
and replacingthis
with the alias within the call.