class Perkins
.Views.Profile extends Backbone.View
el: "#main-content" initialize: -> @model = new Perkins.Models.Profile template: -> JST["profile"](@model.toJSON()) render: ()-> @model.fetch success: => $(@el).html(@template()) close: ()-> $(@el).html("") console.log "CLOSED VIEW CALLED" @.stopListening() @.undelegateEvents() @.unbind()