1
0
Fork 0
beathaven/app/assets/javascripts/backbone/views/artist/artist_show.js.coffee

11 lines
307 B
CoffeeScript

class BeatHaven.Views.ArtistShow extends Backbone.View
template: HoganTemplates["backbone/templates/artists/show"]
initialize: ->
@model.on("change", @render, this)
render: ->
return this if typeof @model.attributes.id is "string"
$(@el).html(@template.render(@model.toJSON()))
this