code: function (node, root) {//*//
      var temp = node;
      while (temp != null) {
        if (temp == root) {
          return false;
        }
        temp = temp.parent()[0];
      }
      return true;
    }
docs: /*node is an outer node of root
  if root is not it's anchestor
  and it is not the root itself