add:  if (this._currentItem === rnode) this._currentItem = undefined; 
context:     _remove: function(rnode) {        var parent = rnode.parentNode;        var level = this._level(parent);             if (rnode.previousSibling != null) {          if (rnode == parent.lastChild) {            this._refreshLine(rnode.previousSibling, level, false);             var prevRow = rnode.previousSibling;            if (prevRow.tw_isLeaf)                prevRow.imageNode.src = tw_Tree.imageLeafBottom;            else if (prevRow.tw_expanded)                prevRow.imageNode.src = tw_Tree.imageExpandBottom;            else                 prevRow.imageNode.src = tw_Tree.imageUnexpandBottom;          }        }            rnode.textNode = rnode.imageNode = rnode.assignedImageNode = rnode.subNodes = null;                parent.removeChild(rnode);            if (parent.hasChildNodes()==false) {          if (level > 0) {            parent.style.display = "none";            parent.tw_isLeaf = true;            bs = parent.parentNode.imageNode;            if ((bs.src == tw_Tree.imageExpand) ||               (bs.src == tw_Tree.imageUnexpand))                bs.src = tw_Tree.imageLeaf;            else                bs.src = tw_Tree.imageLeafBottom;          }        }    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/f27629602365b217afa3e2efbfebe9a222b6cb52/Tree.js/buggy/src/thinwire/render/web/resources/Tree.js