rem: var node = this.pastedNode ? this.pastedNode : viewer.pane.panelset.getClipboardData(); var selected = this.pastedBefore ? this.pastedBefore : viewer.selectedNode; if (selected) { this.pastedNode = node.cloneNode(true); this.pastedBefore = selected; if (selected.nextSibling) selected.parentNode.insertBefore(this.pastedNode, selected.nextSibling); else selected.parentNode.appendChild(this.pastedNode); return false; } return true; }, 
add: var copiedNode = null; if (!this.copiedNode) { copiedNode = viewer.selectedNode.cloneNode(true); if (copiedNode) { this.copiedNode = copiedNode; } } else copiedNode = this.copiedNode;  viewer.pane.panelset.setClipboardData(copiedNode, "inspector/dom-node", null); } 
context:   doTransaction: function()  {    var node = this.pastedNode ? this.pastedNode : viewer.pane.panelset.getClipboardData();    var selected = this.pastedBefore ? this.pastedBefore : viewer.selectedNode;    if (selected) {      this.pastedNode = node.cloneNode(true);      this.pastedBefore = selected;      if (selected.nextSibling)        selected.parentNode.insertBefore(this.pastedNode, selected.nextSibling);      else        selected.parentNode.appendChild(this.pastedNode);      return false;    }    return true;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1bdedd18e398f941e1efe6c0448264ea16e357a1/dom.js/buggy/extensions/inspector/resources/content/viewers/dom/dom.js