Skip to content

Instantly share code, notes, and snippets.

@superchris
Created May 15, 2011 17:30
Show Gist options
  • Select an option

  • Save superchris/973344 to your computer and use it in GitHub Desktop.

Select an option

Save superchris/973344 to your computer and use it in GitHub Desktop.
Foo model with defaults as a function
class Foo extends Backbone.Model
defaults: ->
name: "joe"
bazzes: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment