Published: 2011-10-16
The Backbone.js Model class provides get and set methods to read and write Model attributes which is not a concise or natural as object property access. But it’s not difficult to add a class method to generate Model getter/setter properties so that you can do this in CoffeeScript:
person.name = 'Joe Bloggs' ph = person.phone
instead of this:
person.set {name: 'Joe Bloggs'}
ph = person.get 'name'