code: function (todo) {
        model.remove(todo.id, function () {
          todos.splice(todos.indexOf(todo), 1);
          if (todo.completed) {
            completedCount--;
          } else {
            itemsLeft--;
            checkedAll = completedCount === todos.length;
          }
        });
      }
docs: the todoComponent currently being edited