Skip to content

Instantly share code, notes, and snippets.

@unamashana
Created December 12, 2013 09:06
Show Gist options
  • Save unamashana/7925107 to your computer and use it in GitHub Desktop.
Save unamashana/7925107 to your computer and use it in GitHub Desktop.
SB.Views.TicketList = Backbone.View.extend(
tagName: "div"
className: "listing"
initialize: ->
$(@el).html(SB.Utils.renderTemplate("tickets/ticket_list")())
@ticketList = new SB.Collections.TicketList()
@ticketList.on "add", @addOne
@ticketList.on "reset", @addAll
@ticketList.fetch()
addOne: ->
addAll: ->
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment