code: function(data){
        var todo_div = $('span[item="' + data.__id__ + '"]').find('div'),
            todo_checkbox = $('span[item="' + data.__id__ + '"]').find('input[type="checkbox"]');
        if (data.done){
          data.done = false;
          todo_div.removeClass('done');
          todo_checkbox.attr('checked', false);
        } else {
          data.done = true;
          todo_div.addClass('done');
          todo_checkbox.attr('checked', true);
        }
        cm.update(data.__id__, { done: data.done });
      }
docs: /*
  toggle_item
  
  Called by a Click handler defined in todo.draw_item.
  Toggles an item between done and not done, both in the UI and the CloudMine db.
  Parameters:
  data: Item data, from which this function gets its done status and its id.