/ ES6

Method shorthand in ES6 objects

With ES6 we have a neater way of defining methods in an object literal. This ties in really nicely with the way of defining modules in Ember.

Before

export default Ember.Object.extend({
  saveAssignment: function(assignment) {
    // do stuff
  }
});

After

export default Ember.Object.extend({
  saveAssignment(assignment) {
    // do stuff
  }
});

For more information and other ES6 features see lukehoban/es6features.