old_contents: function()
  {
    // get associated document and delete it
    var app = $$(this).app;
    var box = this;
    var docid = this.parentNode.getAttribute("docid");
    app.db.openDoc(docid, {
        success: function(d)
        {
          app.db.removeDoc(d, {
            success: function(r)
            {
              $('li[docid|="'+docid+'"]').slideUp("fast");
            }
          });
        }
    });
  }
  
new_contents: function()
  {
    // get associated document and delete it
    var app = $$(this).app;
    var box = this;
    var docid = this.parentNode.getAttribute("docid");
    app.db.openDoc(docid, {
        success: function(d)
        {
          app.db.removeDoc(d, {
            success: function(r)
            {
              var el = $('li[docid|="'+docid+'"]');
              el.slideUp("fast");
              el.remove();
            }
          });
        }
    });
  }
  
subject: remove task li from DOM when deleted