Permalink
Browse files

trigger collection's 'reset' event after updating cat ranks

  • Loading branch information...
davidsulc committed Apr 20, 2012
1 parent e8e1870 commit 48d7c04ffa1f6ec53cca2e952a6f26de7d88a538
Showing with 1 addition and 0 deletions.
  1. +1 −0 assets/javascripts/application.js
@@ -68,6 +68,7 @@ AngryCats = Backbone.Collection.extend({
catsToUprank.forEach(function(cat){
cat.rankUp();
});
+ self.trigger('reset');
});
},

0 comments on commit 48d7c04

Please sign in to comment.