getRootNode method

Node getRootNode()
inherited

Implementation

Node getRootNode() {
  Node root = this;
  while (root.parentNode != null) {
    root = root.parentNode as Node;
  }
  return root;
}