scripts/aspect-ratio-selector.js
/**
     * Removes the modal from the DOM, deletes it from memory, then creates a new one
     */
Removes the modal from the DOM, deletes it from memory, then creates a new one
Removes the modal from the DOM deletes it from memory then creates a new one
reset() {
      if (this.modal) {
        this.modal.parentElement.removeChild(this.modal);
        delete this.modal;
      }
      this.selectedRatio = this.availableRatios[0];
      this.modal = this.createAspectRatioModal();
    }
reset ( ) { if ( this . modal ) { this . modal . parentElement . removeChild ( this . modal ) ; delete this . modal ; } this . selectedRatio = this . availableRatios [ 0 ] ; this . modal = this . createAspectRatioModal ( ) ; }
Removes the modal from the DOM, deletes it from memory, then creates a new one
Removes the modal from the DOM deletes it from memory then creates a new one