packages/js-toolkit/components/Modal.js
/**
   * Unbind all events on destroy.
   *
   * @this {Modal & ModalInterface}
   * @return {Modal} The Modal instance.
   */
Unbind all events on destroy.
Unbind all events on destroy .
destroyed() {
    this.close();
    if (this.$options.move && this.refModalParentBackup) {
      this.refModalParentBackup.insertBefore(this.$refs.modal, this.refModalPlaceholder);
      this.refModalUnbindGetRefFilter();
      this.refModalPlaceholder.remove();
      delete this.refModalPlaceholder;
      delete this.refModalParentBackup;
      delete this.refModalUnbindGetRefFilter;
    }
    return this;
  }
destroyed ( ) { this . close ( ) ; if ( this . $options . move && this . refModalParentBackup ) { this . refModalParentBackup . insertBefore ( this . $refs . modal , this . refModalPlaceholder ) ; this . refModalUnbindGetRefFilter ( ) ; this . refModalPlaceholder . remove ( ) ; delete this . refModalPlaceholder ; delete this . refModalParentBackup ; delete this . refModalUnbindGetRefFilter ; } return this ; }
Unbind all events on destroy.
Unbind all events on destroy .