remove method

void remove()

Implementation

void remove() {
  if (this.parent != null) {
    (this.parent as IContainer).removeChild(this);
  }
}