rwjblue / ember-cli-esnext

35 stars 7 forks source link

Does this currently work in 0.0.34? #1

Closed brandonparsons closed 10 years ago

brandonparsons commented 10 years ago

I've tried to use the arrow function, but it is blowing up on me.

if ( Ember.keys(myObject).any( (property) => allocation[property] >= 0.90) ) {
  dosomething();
}

Uncaught SyntaxError: Unexpected token >

rwjblue commented 10 years ago

Nope, it requires 0.0.35+

rwjblue commented 10 years ago

Closing as I believe that this works properly in versions > 0.0.34 (which is mentioned in the README). Will gladly reopen if it doesn't work on 0.0.35 / 0.0.36.

brandonparsons commented 10 years ago

My bad. I saw > 0.0.34 and read >= 0.0.34, probably because I'm currently on 0.0.34 and got excited that I could use arrow functions :)

rwjblue commented 10 years ago

No worries!!