code: function () {
      todoComponent.title = editingTitle.trim();
      if (!todoComponent.title) {
        todoList.editTodo(null);
        todoList.removeTodo(todoComponent);
      } else {
        todoList.todoTitleUpdated(todoComponent);
        todoList.editTodo(null);
        editingTitle = null;
      }
    }
docs: Helper functions