Skip to content

Instantly share code, notes, and snippets.

@jasonporritt
Created May 6, 2011 12:31
Show Gist options
  • Save jasonporritt/958867 to your computer and use it in GitHub Desktop.
Save jasonporritt/958867 to your computer and use it in GitHub Desktop.
Naive translation of Backbone.js example app
initialize: ->
_.bindAll(this, 'render', 'close')
this.model.bind('change', this.render)
this.model.view = this
render: ->
$(this.el).html(this.template(this.model.toJSON()))
this.setContent()
return this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment