Commit 78dfde48 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #779 from NeilvB/parens-fix

Fix parens to bind controller to receive callback correctly
parents 91ddd323 033dda76
......@@ -199,7 +199,7 @@
* number of todos.
*/
Controller.prototype._updateCount = function () {
this.model.getCount(function(todos) {
this.model.getCount((function(todos) {
this.view.render('updateElementCount', todos.active);
this.view.render('clearCompletedButton', {
completed: todos.completed,
......@@ -208,7 +208,7 @@
this.view.render('toggleAll', {checked: todos.completed === todos.total});
this.view.render('contentBlockVisibility', {visible: todos.total > 0});
}).bind(this);
}).bind(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