Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (13 sloc) 0.367 kb
<%= view_namespace %> ||= {}
class <%= view_namespace %>.<%= singular_name.camelize %>View extends Backbone.View
template: JST["<%= jst singular_name %>"]
events:
"click .destroy" : "destroy"
tagName: "tr"
destroy: () ->
@model.destroy()
this.remove()
return false
render: ->
@$el.html(@template(@model.toJSON() ))
return this
Jump to Line
Something went wrong with that request. Please try again.