Skip to content

Commit

Permalink
FIX: calling the correct callback on 'add' on Todos
Browse files Browse the repository at this point in the history
The call to this.addAll for the 'add' event on Todos is redundant and incorrect, this fix corrects it. 
  • Loading branch information
ricogallo committed Sep 4, 2012
1 parent b26fcce commit be8f511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion architecture-examples/backbone/js/views/app.js
Expand Up @@ -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);
Expand Down

0 comments on commit be8f511

Please sign in to comment.