src/aria/popups/PopupManager.js
function () {
                this.disconnectEvents();
                ariaUtilsAriaWindow.attachWindow();
                this._document = Aria.$window.document;
                utilsEvent.addListener(this._document, "mousedown", {
                    fn : this.onDocumentClick,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document, "touchend", {
                    fn : this.onDocumentClick,
                    scope : this
                }, true);

                utilsEvent.addListener(this._document, "mouseout", {
                    fn : this.onDocumentMouseOut,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document, "mousewheel", {
                    fn : this.onDocumentMouseScroll,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document.body, "focusin", {
                    fn : this.onDocumentFocusIn,
                    scope : this
                });

                if (ariaCoreBrowser.isOldIE) {
                    // IE does not support scroll event on the document until IE9
                    ariaUtilsEvent.addListener(Aria.$window, "mousewheel", {
                        fn : this._onScroll,
                        scope : this
                    }, true);

                } else {
                    // All other browsers support scroll event on the document
                    ariaUtilsEvent.addListener(Aria.$window, "scroll", {
                        fn : this._onScroll,
                        scope : this
                    }, true);
                }
            }
function () {
                this.disconnectEvents();
                ariaUtilsAriaWindow.attachWindow();
                this._document = Aria.$window.document;
                utilsEvent.addListener(this._document, "mousedown", {
                    fn : this.onDocumentClick,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document, "touchend", {
                    fn : this.onDocumentClick,
                    scope : this
                }, true);

                utilsEvent.addListener(this._document, "mouseout", {
                    fn : this.onDocumentMouseOut,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document, "mousewheel", {
                    fn : this.onDocumentMouseScroll,
                    scope : this
                }, true);
                utilsEvent.addListener(this._document.body, "focusin", {
                    fn : this.onDocumentFocusIn,
                    scope : this
                });

                if (ariaCoreBrowser.isOldIE) {
                    // IE does not support scroll event on the document until IE9
                    ariaUtilsEvent.addListener(Aria.$window, "mousewheel", {
                        fn : this._onScroll,
                        scope : this
                    }, true);

                } else {
                    // All other browsers support scroll event on the document
                    ariaUtilsEvent.addListener(Aria.$window, "scroll", {
                        fn : this._onScroll,
                        scope : this
                    }, true);
                }
            }
function ( ) { this . disconnectEvents ( ) ; ariaUtilsAriaWindow . attachWindow ( ) ; this . _document = Aria . $window . document ; utilsEvent . addListener ( this . _document , "mousedown" , { fn : this . onDocumentClick , scope : this } , true ) ; utilsEvent . addListener ( this . _document , "touchend" , { fn : this . onDocumentClick , scope : this } , true ) ; utilsEvent . addListener ( this . _document , "mouseout" , { fn : this . onDocumentMouseOut , scope : this } , true ) ; utilsEvent . addListener ( this . _document , "mousewheel" , { fn : this . onDocumentMouseScroll , scope : this } , true ) ; utilsEvent . addListener ( this . _document . body , "focusin" , { fn : this . onDocumentFocusIn , scope : this } ) ; if ( ariaCoreBrowser . isOldIE ) { // IE does not support scroll event on the document until IE9 ariaUtilsEvent . addListener ( Aria . $window , "mousewheel" , { fn : this . _onScroll , scope : this } , true ) ; } else { // All other browsers support scroll event on the document ariaUtilsEvent . addListener ( Aria . $window , "scroll" , { fn : this . _onScroll , scope : this } , true ) ; } }
Connect or reconnect global events on the document
Connect or reconnect global events on the document