src/aria/utils/Number.js
function (evt) {
            var uArray = ariaUtilsArray;
            if (!evt || !evt.changedProperties || uArray.contains(evt.changedProperties, "decimalFormatSymbols")
                    || uArray.contains(evt.changedProperties, "currencyFormats")) {
                var symbols = ariaUtilsEnvironmentNumber.getDecimalFormatSymbols();
                var formats = ariaUtilsEnvironmentNumber.getCurrencyFormats();
                var exps = this._buildRegEx(symbols.groupingSeparator, symbols.decimalSeparator);

                if (exps.valid) {
                    this._removeGrouping = exps.group;
                    this._replaceDecimal = exps.decimal;
                    this._decimal = symbols.decimalSeparator;
                    this._grouping = symbols.groupingSeparator;
                    this._strictGrouping = symbols.strictGrouping;
                }

                var uType = ariaUtilsType;
                if (!uType.isString(formats.currencyFormat) && !uType.isFunction(formats.currencyFormat)) {
                    this.$logError(this.INVALID_FORMAT, ["currencyFormat", this.CURRENCY_BEAN]);
                    // still valid for building the regular expressions
                } else {
                    this._format = formats.currencyFormat;
                    this._currency = formats.currencySymbol;
                }
            }
        }
function (evt) {
            var uArray = ariaUtilsArray;
            if (!evt || !evt.changedProperties || uArray.contains(evt.changedProperties, "decimalFormatSymbols")
                    || uArray.contains(evt.changedProperties, "currencyFormats")) {
                var symbols = ariaUtilsEnvironmentNumber.getDecimalFormatSymbols();
                var formats = ariaUtilsEnvironmentNumber.getCurrencyFormats();
                var exps = this._buildRegEx(symbols.groupingSeparator, symbols.decimalSeparator);

                if (exps.valid) {
                    this._removeGrouping = exps.group;
                    this._replaceDecimal = exps.decimal;
                    this._decimal = symbols.decimalSeparator;
                    this._grouping = symbols.groupingSeparator;
                    this._strictGrouping = symbols.strictGrouping;
                }

                var uType = ariaUtilsType;
                if (!uType.isString(formats.currencyFormat) && !uType.isFunction(formats.currencyFormat)) {
                    this.$logError(this.INVALID_FORMAT, ["currencyFormat", this.CURRENCY_BEAN]);
                    // still valid for building the regular expressions
                } else {
                    this._format = formats.currencyFormat;
                    this._currency = formats.currencySymbol;
                }
            }
        }
function ( evt ) { var uArray = ariaUtilsArray ; if ( ! evt || ! evt . changedProperties || uArray . contains ( evt . changedProperties , "decimalFormatSymbols" ) || uArray . contains ( evt . changedProperties , "currencyFormats" ) ) { var symbols = ariaUtilsEnvironmentNumber . getDecimalFormatSymbols ( ) ; var formats = ariaUtilsEnvironmentNumber . getCurrencyFormats ( ) ; var exps = this . _buildRegEx ( symbols . groupingSeparator , symbols . decimalSeparator ) ; if ( exps . valid ) { this . _removeGrouping = exps . group ; this . _replaceDecimal = exps . decimal ; this . _decimal = symbols . decimalSeparator ; this . _grouping = symbols . groupingSeparator ; this . _strictGrouping = symbols . strictGrouping ; } var uType = ariaUtilsType ; if ( ! uType . isString ( formats . currencyFormat ) && ! uType . isFunction ( formats . currencyFormat ) ) { this . $logError ( this . INVALID_FORMAT , [ "currencyFormat" , this . CURRENCY_BEAN ] ) ; // still valid for building the regular expressions } else { this . _format = formats . currencyFormat ; this . _currency = formats . currencySymbol ; } } }
Listener for the AppEnvironment change. It generates the Regular Expressions that depends on the symbols used
in NumberCfg
@param {Object} evt Event raised by the app environment
@private
Listener for the AppEnvironment change . It generates the Regular Expressions that depends on the symbols used in NumberCfg