src/aria/utils/Orientation.js
function () {
        var window = Aria.$window;
        if (typeof(window.orientation) != "undefined") { // check if browser support orientation change
            this.screenOrientation = window.orientation;
            this.isPortrait = this.__isPortrait();

            // start listening native event orinetationchange.
            ariaUtilsEvent.addListener(window, "orientationchange", {
                fn : this._onOrientationChange,
                scope : this
            });
        }
    }
function () {
        var window = Aria.$window;
        if (typeof(window.orientation) != "undefined") { // check if browser support orientation change
            this.screenOrientation = window.orientation;
            this.isPortrait = this.__isPortrait();

            // start listening native event orinetationchange.
            ariaUtilsEvent.addListener(window, "orientationchange", {
                fn : this._onOrientationChange,
                scope : this
            });
        }
    }
function ( ) { var window = Aria . $window ; if ( typeof ( window . orientation ) != "undefined" ) { // check if browser support orientation change this . screenOrientation = window . orientation ; this . isPortrait = this . __isPortrait ( ) ; // start listening native event orinetationchange. ariaUtilsEvent . addListener ( window , "orientationchange" , { fn : this . _onOrientationChange , scope : this } ) ; } }
Adding a listener while initializing Orientation to listen to the native orientationchange event.
Adding a listener while initializing Orientation to listen to the native orientationchange event .