B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Destroy the property inspector message node. This performs the necessary
   * cleanup for the tree widget and removes it from the DOM.
   *
   * @param nsIDOMNode aMessageNode
   *        The message node that contains the property inspector from a
   *        console.dir call.
   */
Destroy the property inspector message node. This performs the necessary
cleanup for the tree widget and removes it from the DOM.

@param nsIDOMNode aMessageNode
The message node that contains the property inspector from a
console.dir call.
Destroy the property inspector message node . This performs the necessary cleanup for the tree widget and removes it from the DOM . @param nsIDOMNode aMessageNode The message node that contains the property inspector from a console . dir call .
function WCF_pruneConsoleDirNode(aMessageNode)
  {
    if (aMessageNode.parentNode) {
      aMessageNode.parentNode.removeChild(aMessageNode);
    }
    let tree = aMessageNode.querySelector("tree");
    tree.parentNode.removeChild(tree);
    aMessageNode.propertyTreeView.data = null;
    aMessageNode.propertyTreeView = null;
    tree.view = null;
  }
function WCF_pruneConsoleDirNode ( aMessageNode ) { if ( aMessageNode . parentNode ) { aMessageNode . parentNode . removeChild ( aMessageNode ) ; } let tree = aMessageNode . querySelector ( "tree" ) ; tree . parentNode . removeChild ( tree ) ; aMessageNode . propertyTreeView . data = null ; aMessageNode . propertyTreeView = null ; tree . view = null ; }
Destroy the property inspector message node.
Destroy the property inspector message node .