Commit d42bf75d authored by Sam Saccone's avatar Sam Saccone

Merge pull request #1274 from elie29/patch-2

Debounce the rendering of the application view
parents 5169fabb f4495922
......@@ -41,7 +41,7 @@ define([
this.listenTo(Todos, 'reset', this.addAll);
this.listenTo(Todos, 'change:completed', this.filterOne);
this.listenTo(Todos, 'filter', this.filterAll);
this.listenTo(Todos, 'all', this.render);
this.listenTo(Todos, 'all', _.debounce(this.render, 0));
Todos.fetch({reset:true});
},
......
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