code: function () {
      var title = newTodoTitle.trim();
      if (title) {
        model.create(newTodoTitle, function (results) {
          var todo = createTodoComponent(listComponent, results[0].id, results[0].title);
          todos.push(todo);
          itemsLeft++;
          checkedAll = false;
        });
      }
    }
docs: Helper functions