B2G/gecko/content/xul/templates/tests/chrome/templates_shared.js
/**
 * Converts a tree view (nsITreeView) into the equivalent DOM tree.
 * Returns the treechildren
 */
Converts a tree view (nsITreeView) into the equivalent DOM tree.
Returns the treechildren
Converts a tree view ( nsITreeView ) into the equivalent DOM tree . Returns the treechildren
function treeViewToDOM(tree)
{
  var treechildren = document.createElement("treechildren");
  if (tree.view)
    treeViewToDOMInner(tree.columns, treechildren, tree.view, tree.builder, 0, 0);
  return treechildren;
}
function treeViewToDOM ( tree ) { var treechildren = document . createElement ( "treechildren" ) ; if ( tree . view ) treeViewToDOMInner ( tree . columns , treechildren , tree . view , tree . builder , 0 , 0 ) ; return treechildren ; }
Converts a tree view (nsITreeView) into the equivalent DOM tree.
Converts a tree view ( nsITreeView ) into the equivalent DOM tree .