code: function() {
          var layer;
          for(var i=0; i<this.layers.length; ++i) {
              layer = this.layers[i];
              if(this.renderer && layer.renderer.getRenderLayerId() == this.id) {
                  this.renderer.moveRoot(layer.renderer);
              }
          }
      }
docs: Method: resetRoots
  Resets the root nodes back into the layers they belong to.