Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tswicegood committed Aug 5, 2011
1 parent 41e00eb commit c4cc2ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.coffee
Expand Up @@ -44,6 +44,7 @@ App = Backbone.View.extend
@list = new List()
@list.bind "all", @render, this
@list.bind "add", @addOne, this
@destination = @$ "#destination"
@render()
return

Expand All @@ -53,7 +54,7 @@ App = Backbone.View.extend
addOne: (item) ->
view = new ListItemView model: item
window.foo = view
@$("#destination").append view.render().el
@destination.append view.render().el

newAttributes: ->
return {
Expand Down

0 comments on commit c4cc2ba

Please sign in to comment.