docs: function (domEvent) {
              if (this.isOpen) {
                  var event = {
                      name : "onBeforeClose",
                      cancelClose : false,
                      domEvent : domEvent
                  };
                  this.$raiseEvent(event);
                  if (!event.cancelClose) {
                      this._hide();
  
                      this._modalNavigationInterceptor.destroyElements();
  
                      this.isOpen = false;
                      // Notify the popup manager this popup was closed
                      ariaPopupsPopupManager.onPopupClose(this);
                      if (!this.conf.animateOut) {
                          this._onAfterClose();
                      } else {
                          this._getAnimator().$onOnce({
                              "animationend" : this._onAfterClose,
                              scope : this
                          });
                      }
                  }
              }
          }