src/aria/touch/widgets/Popup.js
function () {
            var cfg = this._cfg;
            var refreshParams = {
                section : "__popup_" + this._domId,
                writerCallback : {
                    fn : this._writerCallback,
                    scope : this
                }
            };

            var section = this._context.getRefreshedSection(refreshParams);

            var popup = new aria.popups.Popup();
            this._popup = popup;
            popup.$on({
                "onAfterClose" : this.disposePopup,
                scope : this
            });

            // default the position to 0,0 if nothing is defined
            if (cfg.domReference === null && cfg.referenceId === null && cfg.absolutePosition === null
                    && cfg.center === false) {
                cfg.absolutePosition = {
                    top : 0,
                    left : 0
                };
            }

            var domReference = null;
            if (cfg.domReference) {
                domReference = cfg.domReference;
            } else if (cfg.referenceId) {
                domReference = ariaUtilsDom.getElementById(this._context.$getId(cfg.referenceId));
            }

            popup.open({
                section : section,
                keepSection : true,
                modal : cfg.modal,
                maskCssClass : cfg.maskCssClass,
                domReference : domReference,
                absolutePosition : cfg.absolutePosition,
                center : cfg.center,
                maximized : cfg.maximized,
                closeOnMouseClick : cfg.closeOnMouseClick,
                closeOnMouseScroll : cfg.closeOnMouseScroll,
                closeOnMouseOut : cfg.closeOnMouseOut,
                closeOnMouseOutDelay : cfg.closeOnMouseOutDelay,
                preferredPositions : cfg.preferredPositions,
                offset : cfg.offset,
                ignoreClicksOn : cfg.ignoreClicksOn,
                parentDialog : cfg.parentDialog,
                zIndexKeepOpenOrder : cfg.zIndexKeepOpenOrder,
                preferredWidth : cfg.preferredWidth,
                animateOut : cfg.animateOut,
                animateIn : cfg.animateIn
            });
        }
function () {
            var cfg = this._cfg;
            var refreshParams = {
                section : "__popup_" + this._domId,
                writerCallback : {
                    fn : this._writerCallback,
                    scope : this
                }
            };

            var section = this._context.getRefreshedSection(refreshParams);

            var popup = new aria.popups.Popup();
            this._popup = popup;
            popup.$on({
                "onAfterClose" : this.disposePopup,
                scope : this
            });

            // default the position to 0,0 if nothing is defined
            if (cfg.domReference === null && cfg.referenceId === null && cfg.absolutePosition === null
                    && cfg.center === false) {
                cfg.absolutePosition = {
                    top : 0,
                    left : 0
                };
            }

            var domReference = null;
            if (cfg.domReference) {
                domReference = cfg.domReference;
            } else if (cfg.referenceId) {
                domReference = ariaUtilsDom.getElementById(this._context.$getId(cfg.referenceId));
            }

            popup.open({
                section : section,
                keepSection : true,
                modal : cfg.modal,
                maskCssClass : cfg.maskCssClass,
                domReference : domReference,
                absolutePosition : cfg.absolutePosition,
                center : cfg.center,
                maximized : cfg.maximized,
                closeOnMouseClick : cfg.closeOnMouseClick,
                closeOnMouseScroll : cfg.closeOnMouseScroll,
                closeOnMouseOut : cfg.closeOnMouseOut,
                closeOnMouseOutDelay : cfg.closeOnMouseOutDelay,
                preferredPositions : cfg.preferredPositions,
                offset : cfg.offset,
                ignoreClicksOn : cfg.ignoreClicksOn,
                parentDialog : cfg.parentDialog,
                zIndexKeepOpenOrder : cfg.zIndexKeepOpenOrder,
                preferredWidth : cfg.preferredWidth,
                animateOut : cfg.animateOut,
                animateIn : cfg.animateIn
            });
        }
function ( ) { var cfg = this . _cfg ; var refreshParams = { section : "__popup_" + this . _domId , writerCallback : { fn : this . _writerCallback , scope : this } } ; var section = this . _context . getRefreshedSection ( refreshParams ) ; var popup = new aria . popups . Popup ( ) ; this . _popup = popup ; popup . $on ( { "onAfterClose" : this . disposePopup , scope : this } ) ; // default the position to 0,0 if nothing is defined if ( cfg . domReference === null && cfg . referenceId === null && cfg . absolutePosition === null && cfg . center === false ) { cfg . absolutePosition = { top : 0 , left : 0 } ; } var domReference = null ; if ( cfg . domReference ) { domReference = cfg . domReference ; } else if ( cfg . referenceId ) { domReference = ariaUtilsDom . getElementById ( this . _context . $getId ( cfg . referenceId ) ) ; } popup . open ( { section : section , keepSection : true , modal : cfg . modal , maskCssClass : cfg . maskCssClass , domReference : domReference , absolutePosition : cfg . absolutePosition , center : cfg . center , maximized : cfg . maximized , closeOnMouseClick : cfg . closeOnMouseClick , closeOnMouseScroll : cfg . closeOnMouseScroll , closeOnMouseOut : cfg . closeOnMouseOut , closeOnMouseOutDelay : cfg . closeOnMouseOutDelay , preferredPositions : cfg . preferredPositions , offset : cfg . offset , ignoreClicksOn : cfg . ignoreClicksOn , parentDialog : cfg . parentDialog , zIndexKeepOpenOrder : cfg . zIndexKeepOpenOrder , preferredWidth : cfg . preferredWidth , animateOut : cfg . animateOut , animateIn : cfg . animateIn } ) ; }
Shows the popup
Shows the popup