code: function(renderer) {
          var root = this.root;
          if(renderer.root.parentNode == this.rendererRoot) {
              root = renderer.root;
          }
          root.parentNode.removeChild(root);
          renderer.rendererRoot.appendChild(root);
      }
docs: Method: moveRoot
  moves this renderer's root to a different renderer.
  
  Parameters:
  renderer - {<OpenLayers.Renderer>} target renderer for the moved root