src/aria/popups/PopupManager.js
function (event) {
                var domEvent = /** @type aria.DomEvent */
                new ariaDomEvent(event), target = /** @type HTMLElement */
                domEvent.target;

                if (this.openedPopups.length === 0) {
                    domEvent.$dispose();
                    return;
                }

                // restrict this to the popup on the top
                var popup = /** @type aria.popups.Popup */
                this.openedPopups[this.openedPopups.length - 1];

                var ignoreClick = false;
                for (var j = 0, length = popup._ignoreClicksOn.length; j < length; j++) {
                    if (utilsDom.isAncestor(target, popup._ignoreClicksOn[j])) {
                        ignoreClick = true;
                        break;
                    }
                }

                if (!(ignoreClick || utilsDom.isAncestor(target, popup.getDomElement()))) {
                    popup.closeOnMouseClick(domEvent);
                }

                var topPopup = this.findParentPopup(target);
                if (topPopup) {
                    this.bringToFront(topPopup);
                }

                domEvent.$dispose();
            }
function (event) {
                var domEvent = /** @type aria.DomEvent */
                new ariaDomEvent(event), target = /** @type HTMLElement */
                domEvent.target;

                if (this.openedPopups.length === 0) {
                    domEvent.$dispose();
                    return;
                }

                // restrict this to the popup on the top
                var popup = /** @type aria.popups.Popup */
                this.openedPopups[this.openedPopups.length - 1];

                var ignoreClick = false;
                for (var j = 0, length = popup._ignoreClicksOn.length; j < length; j++) {
                    if (utilsDom.isAncestor(target, popup._ignoreClicksOn[j])) {
                        ignoreClick = true;
                        break;
                    }
                }

                if (!(ignoreClick || utilsDom.isAncestor(target, popup.getDomElement()))) {
                    popup.closeOnMouseClick(domEvent);
                }

                var topPopup = this.findParentPopup(target);
                if (topPopup) {
                    this.bringToFront(topPopup);
                }

                domEvent.$dispose();
            }
function ( event ) { var domEvent = /** @type aria.DomEvent */ new ariaDomEvent ( event ) , target = /** @type HTMLElement */ domEvent . target ; if ( this . openedPopups . length === 0 ) { domEvent . $dispose ( ) ; return ; } // restrict this to the popup on the top var popup = /** @type aria.popups.Popup */ this . openedPopups [ this . openedPopups . length - 1 ] ; var ignoreClick = false ; for ( var j = 0 , length = popup . _ignoreClicksOn . length ; j < length ; j ++ ) { if ( utilsDom . isAncestor ( target , popup . _ignoreClicksOn [ j ] ) ) { ignoreClick = true ; break ; } } if ( ! ( ignoreClick || utilsDom . isAncestor ( target , popup . getDomElement ( ) ) ) ) { popup . closeOnMouseClick ( domEvent ) ; } var topPopup = this . findParentPopup ( target ) ; if ( topPopup ) { this . bringToFront ( topPopup ) ; } domEvent . $dispose ( ) ; }
Callback when the user clicks on the document
@param {Object} event The DOM click event triggering the callback
Callback when the user clicks on the document