_changeLoadingHtml() {
      this._readyToShowLoadingHtml = false;
      // Remove any old event listeners that may still be attached to the DOM
      this._loadingHtmlElem.removeEventListener(transitionEvent, this._loadingHtmlListener);
      this._loadingHtmlElem.removeEventListener(transitionEvent, this._removingHtmlListener);
      // Remove any old CSS transition classes that may still be on the element
      removeClass("pg-loading", this._loadingHtmlElem);
      removeClass("pg-removing", this._loadingHtmlElem);

      if (transitionSupport) {
        // Add the CSS class that will cause the HTML to fade out
        addClass("pg-removing", this._loadingHtmlElem);
        return this._loadingHtmlElem.addEventListener(transitionEvent, this._removingHtmlListener);
      } else {
        return this._removingHtmlListener();
      }
    }
// Private method to immediately change the loading HTML displayed
Private method to immediately change the loading HTML displayed
Private method to immediately change the loading HTML displayed
_changeLoadingHtml() {
      this._readyToShowLoadingHtml = false;
      this._loadingHtmlElem.removeEventListener(transitionEvent, this._loadingHtmlListener);
      this._loadingHtmlElem.removeEventListener(transitionEvent, this._removingHtmlListener);
      removeClass("pg-loading", this._loadingHtmlElem);
      removeClass("pg-removing", this._loadingHtmlElem);
      if (transitionSupport) {
        addClass("pg-removing", this._loadingHtmlElem);
        return this._loadingHtmlElem.addEventListener(transitionEvent, this._removingHtmlListener);
      } else {
        return this._removingHtmlListener();
      }
    }
_changeLoadingHtml ( ) { this . _readyToShowLoadingHtml = false ; this . _loadingHtmlElem . removeEventListener ( transitionEvent , this . _loadingHtmlListener ) ; this . _loadingHtmlElem . removeEventListener ( transitionEvent , this . _removingHtmlListener ) ; removeClass ( "pg-loading" , this . _loadingHtmlElem ) ; removeClass ( "pg-removing" , this . _loadingHtmlElem ) ; if ( transitionSupport ) { addClass ( "pg-removing" , this . _loadingHtmlElem ) ; return this . _loadingHtmlElem . addEventListener ( transitionEvent , this . _removingHtmlListener ) ; } else { return this . _removingHtmlListener ( ) ; } }
Private method to immediately change the loading HTML displayed
Private method to immediately change the loading HTML displayed
// Remove any old event listeners that may still be attached to the DOM // Remove any old CSS transition classes that may still be on the element // Add the CSS class that will cause the HTML to fade out