Skip to content

Instantly share code, notes, and snippets.

@jasonporritt
Created May 6, 2011 12:32
Show Gist options
  • Save jasonporritt/958875 to your computer and use it in GitHub Desktop.
Save jasonporritt/958875 to your computer and use it in GitHub Desktop.
Use the fat arrow -- translation of Backbone.js example app
initialize: ->
this.model.bind('change', this.render)
this.model.view = this
render: =>
$(this.el).html(this.template(this.model.toJSON()))
this.setContent()
return this
@macarthy
Copy link

initialize: ->
Should be
initialize: =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment