destroy () {
    if (this.dom && this.dom.frame && this.dom.frame.parentNode) {
      this.dom.frame.parentNode.removeChild(this.dom.frame)
    }
    this.dom = null
  }
Destroy the ModeSwitcher, remove from DOM