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. 
parent b26fccea
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment