Created
October 26, 2015 14:30
-
-
Save timgthomas/4b8f85c82206bd87b4f5 to your computer and use it in GitHub Desktop.
Arrow (Fun)ctions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Component.extend({ | |
computed: Ember.computed(() => { | |
this.foo(); | |
}) | |
}) | |
// ...transpiles to... | |
/* | |
var _this = undefined; | |
Ember.Component.extend({ | |
computed: Ember.computed(() => { | |
_this.foo(); // Ruh roh! | |
}) | |
}) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment