src/aria/popups/PopupManager.js
function (event) {
                var domEvent = /** @type aria.DomEvent */
                new ariaDomEvent(event);
                var fromTarget = /** @type HTMLElement */
                domEvent.target;
                var toTarget = /** @type HTMLElement */
                domEvent.relatedTarget;
                for (var i = this.openedPopups.length - 1; i >= 0; i--) {
                    var popup = /** @type aria.popups.Popup */
                    this.openedPopups[i];
                    if (!utilsDom.isAncestor(toTarget, popup.getDomElement())
                            && utilsDom.isAncestor(fromTarget, popup.getDomElement())) {
                        popup.closeOnMouseOut(domEvent);
                    }
                }
                domEvent.$dispose();
            }
function (event) {
                var domEvent = /** @type aria.DomEvent */
                new ariaDomEvent(event);
                var fromTarget = /** @type HTMLElement */
                domEvent.target;
                var toTarget = /** @type HTMLElement */
                domEvent.relatedTarget;
                for (var i = this.openedPopups.length - 1; i >= 0; i--) {
                    var popup = /** @type aria.popups.Popup */
                    this.openedPopups[i];
                    if (!utilsDom.isAncestor(toTarget, popup.getDomElement())
                            && utilsDom.isAncestor(fromTarget, popup.getDomElement())) {
                        popup.closeOnMouseOut(domEvent);
                    }
                }
                domEvent.$dispose();
            }
function ( event ) { var domEvent = /** @type aria.DomEvent */ new ariaDomEvent ( event ) ; var fromTarget = /** @type HTMLElement */ domEvent . target ; var toTarget = /** @type HTMLElement */ domEvent . relatedTarget ; for ( var i = this . openedPopups . length - 1 ; i >= 0 ; i -- ) { var popup = /** @type aria.popups.Popup */ this . openedPopups [ i ] ; if ( ! utilsDom . isAncestor ( toTarget , popup . getDomElement ( ) ) && utilsDom . isAncestor ( fromTarget , popup . getDomElement ( ) ) ) { popup . closeOnMouseOut ( domEvent ) ; } } domEvent . $dispose ( ) ; }
Callback when the mouse move on the document. This is required to close some popups.
@param {Object} event
Callback when the mouse move on the document . This is required to close some popups .