News for hackers. Stuff that matters.
Re:The Transition to Ember 2.0 in Detail by Osiris on Wednesday May 20, 2015 @12:12AM (#9574614)
I'm confused by this example:

    export default Component.extend({
      keyUp(event) {
        if (event.which === 13) {
          this.attrs['on-enter'](this.$().val());
        }
      }
   });
This is invalid ES5. I assume this is new ES6 module syntax, specifically the `keyUp(event) {`?
Re:The Transition to Ember 2.0 in Detail by girvo on Wednesday May 20, 2015 @08:57AM (#9575966)
Having been rewriting a large system that was a disgusting jquery mishmash of terrible code in React/Flummox, all in ES6/ES7 classes and compiled down with Browserify, I'd never want to write JavaScript any other way. ES6 syntax like what you've pointed out is simply brilliant in everyday usage :)
Re:The Transition to Ember 2.0 in Detail by jjjjjosh on Wednesday May 20, 2015 @12:33AM (#9574691)
yeah, it's ES6 shorthand for `keyUp: function (event) {`; the new syntax is valid both in objects and class definitions.