tastejs / todomvc-backbone-es6

Backbone TodoMVC rewritten using ES6
http://addyosmani.github.io/todomvc-backbone-es6
234 stars 46 forks source link

Rephrase how you introduce method definitions #13

Closed domenic closed 11 years ago

domenic commented 11 years ago

Note the omission of the 'function' keyword as in ES6 it is entirely optional

This seems a bit of a strange way to talk about this. I would instead have a sentence saying something like

Notice our use of the new "method definition" syntax for declaring methods for our class; we don't need the function keyword. This works in object literals, too.

passy commented 11 years ago

Thanks!