docs: 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
                  });
              }