src/aria/popups/PopupManager.js
function (popup) {
                var openedPopups = this.openedPopups;
                utilsArray.remove(openedPopups, popup);
                if (popup.modalMaskDomElement) {
                    this.modalPopups -= 1;
                    if (this.modalPopups === 0) {
                        this.disconnectModalEvents();
                        this.$raiseEvent("modalPopupAbsent");
                        this._viewportNavigationInterceptor.destroyElements();
                    }
                }
                if (utilsArray.isEmpty(openedPopups)) {
                    this.disconnectEvents();
                }
                var curZIndex = popup.getZIndex();
                if (curZIndex === this.currentZIndex) {
                    this.currentZIndex -= 10;
                }

                this.$raiseEvent({
                    name : "popupClose",
                    popup : popup
                });
            }
function (popup) {
                var openedPopups = this.openedPopups;
                utilsArray.remove(openedPopups, popup);
                if (popup.modalMaskDomElement) {
                    this.modalPopups -= 1;
                    if (this.modalPopups === 0) {
                        this.disconnectModalEvents();
                        this.$raiseEvent("modalPopupAbsent");
                        this._viewportNavigationInterceptor.destroyElements();
                    }
                }
                if (utilsArray.isEmpty(openedPopups)) {
                    this.disconnectEvents();
                }
                var curZIndex = popup.getZIndex();
                if (curZIndex === this.currentZIndex) {
                    this.currentZIndex -= 10;
                }

                this.$raiseEvent({
                    name : "popupClose",
                    popup : popup
                });
            }
function ( popup ) { var openedPopups = this . openedPopups ; utilsArray . remove ( openedPopups , popup ) ; if ( popup . modalMaskDomElement ) { this . modalPopups -= 1 ; if ( this . modalPopups === 0 ) { this . disconnectModalEvents ( ) ; this . $raiseEvent ( "modalPopupAbsent" ) ; this . _viewportNavigationInterceptor . destroyElements ( ) ; } } if ( utilsArray . isEmpty ( openedPopups ) ) { this . disconnectEvents ( ) ; } var curZIndex = popup . getZIndex ( ) ; if ( curZIndex === this . currentZIndex ) { this . currentZIndex -= 10 ; } this . $raiseEvent ( { name : "popupClose" , popup : popup } ) ; }
Manager handler when a popup is closed. Unregister the popup as opened, unregister global events if needed.
@param {aria.popups.Popup} popup
Manager handler when a popup is closed . Unregister the popup as opened unregister global events if needed .