Permalink
Browse files

FIX: calling the correct callback on 'add' on Todos

The call to this.addAll for the 'add' event on Todos is redundant and incorrect, this fix corrects it. 
  • Loading branch information...
1 parent b26fcce commit be8f51105b8bf037b279a97615c0d5a8718c9626 @ricogallo ricogallo committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 architecture-examples/backbone/js/views/app.js
@@ -32,7 +32,7 @@ $(function( $ ) {
this.$footer = this.$('#footer');
this.$main = this.$('#main');
- window.app.Todos.on( 'add', this.addAll, this );
+ window.app.Todos.on( 'add', this.addOne, this );
window.app.Todos.on( 'reset', this.addAll, this );
window.app.Todos.on('change:completed', this.filterOne, this);
window.app.Todos.on("filter", this.filterAll, this);

0 comments on commit be8f511

Please sign in to comment.