angular / prophecy

Deferred/Promise for AngularJS 2.0
Other
36 stars 6 forks source link

refactor(Deferred): use arrow functions to bind 'this' rather than Function.bind() #5

Closed caitp closed 10 years ago

caitp commented 10 years ago

Arrow functions use the this of the enclosing lexical scope, and Traceur will create an alias to the enclosing this, which is very handy and avoids creating an extra function.

Closes #4