Commit 033dda76 authored by Neil van Beinum's avatar Neil van Beinum

Fix parens to bind controller to receive callback correctly

parent 58976107
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
* number of todos. * number of todos.
*/ */
Controller.prototype._updateCount = function () { Controller.prototype._updateCount = function () {
this.model.getCount(function(todos) { this.model.getCount((function(todos) {
this.view.render('updateElementCount', todos.active); this.view.render('updateElementCount', todos.active);
this.view.render('clearCompletedButton', { this.view.render('clearCompletedButton', {
completed: todos.completed, completed: todos.completed,
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
this.view.render('toggleAll', {checked: todos.completed === todos.total}); this.view.render('toggleAll', {checked: todos.completed === todos.total});
this.view.render('contentBlockVisibility', {visible: todos.total > 0}); 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