Skip to content

Instantly share code, notes, and snippets.

@unamashana
Created December 15, 2013 06:50
Show Gist options
  • Save unamashana/7969798 to your computer and use it in GitHub Desktop.
Save unamashana/7969798 to your computer and use it in GitHub Desktop.
SB.Views.Ticket = Backbone.View.extend(
initialize: ->
@model = @options.model
$(@el).html SB.Utils.renderTemplate('tickets/template')(@model.toJSON())
@buildView()
buildView: ->
@renderReplies()
@renderNewReplyBox()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment