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");
          }
        });
      }
  });
}

@@ -291,16 +291,25 @@
         
+ var el =
  $('li%5Bd
@@ -332,23 +332,64 @@
 %22%5D')
-.slideUp(%22fast%22
+;%0A            el.slideUp(%22fast%22);%0A            el.remove(
 );%0A 

remove task li from DOM when deleted