Skip to content

Commit

Permalink
removed 'change' from collection triggers (to prevent unnecessary red…
Browse files Browse the repository at this point in the history
…raws)
  • Loading branch information
hunterloftis committed May 22, 2012
1 parent 34cdbfd commit 49fdd32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ do (Backbone) ->
@container.html('')
@collection = @viewModel.get(@attr)
if @collection instanceof Backbone.Collection
@collection.off('add remove reset change create sort', @onCollectionChange);
@collection.off('add remove reset create sort', @onCollectionChange);
@collection.each(@renderItem);
@collection.on('add remove reset change create sort', @onCollectionChange);
@collection.on('add remove reset create sort', @onCollectionChange);
else
@renderItem(item) for item in @collection
renderItem: (viewModel) =>
Expand Down

0 comments on commit 49fdd32

Please sign in to comment.