   expect 3
 
   @field.on 'tasklist:change', (event, index, checked) =>
-    equal parseInt(@completeCheckbox.attr('data-item-index')), index
     ok !checked
+    equal index, @completeItem.expectedIndex
     equal @field.val(), @changes.toComplete
 
   setTimeout ->


    @completeItem.append @completeCheckbox
    @list.append @completeItem

    @incompleteItem.append @incompleteCheckbox
    @list.append @incompleteItem

    @container.append @list
    @container.append @field

  expect 3

  @field.on 'tasklist:change', (event, index, checked) =>
    ok checked
    equal index, @incompleteItem.expectedIndex
    equal @field.val(), @changes.toIncomplete

  setTimeout ->
