Commit f13ad9d7 authored by Aaron Boushley's avatar Aaron Boushley

Add a comment for the toggleAllComplete method.

parent df3ed73f
......@@ -101,6 +101,7 @@ define([
this.tooltipTimeout = _.delay(show, 1000);
},
// Change each todo so that it's `done` state matches the check all
toggleAllComplete: function () {
var done = this.allCheckbox.checked;
Todos.each(function (todo) { todo.save({'done': done}); });
......
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