 #
 # ### Events
 #
-# When an update succeeds, a `tasklist:updated' event is triggered, passing
-# along whatever data the request responded with. Handle this event if you
-# need additional behavior.
+# When the TaskList field has been changed, a `tasklist:change` event is fired.
 #
 # Updating a task list item by clicking on the check box will send an
 # `tasklist:updateSend` event. Following the `ajaxComplete` event,

#
# Enables Task List update behavior.
#
# ### Expects
#
# TaskLists MUST be contained in a `div.js-task-list-container`.
#

  disableTaskList $container

  $field.val updateTaskListItem($field.val(), index, checked)
  $field.trigger 'change'
  $field.trigger 'tasklist:change', [index, checked]
  $form.trigger 'tasklist:updateSend', [index, checked]
  $form.one 'ajaxComplete', ->
    enableTaskList $container
