MCPcopy
hub / github.com/autoNumeric/autoNumeric / _updatePredefinedOptions

Method _updatePredefinedOptions

src/AutoNumeric.js:4800–4809  ·  view source on GitHub ↗

* Update the AutoNumeric object with the predefined options, and possibly some option overrides. * * @param {object} predefinedOption * @param {object} optionOverride * @private * @returns {AutoNumeric}

(predefinedOption, optionOverride = null)

Source from the content-addressed store, hash-verified

4798 * @returns {AutoNumeric}
4799 */
4800 _updatePredefinedOptions(predefinedOption, optionOverride = null) {
4801 if (!AutoNumericHelper.isNull(optionOverride)) {
4802 this._mergeSettings(predefinedOption, optionOverride);
4803 this.update(this.settings);
4804 } else {
4805 this.update(predefinedOption);
4806 }
4807
4808 return this;
4809 }
4810
4811 /**
4812 * Update the settings to use the French pre-defined language options.

Callers 8

frenchMethod · 0.95
northAmericanMethod · 0.95
britishMethod · 0.95
swissMethod · 0.95
japaneseMethod · 0.95
spanishMethod · 0.95
chineseMethod · 0.95
brazilianMethod · 0.95

Calls 3

_mergeSettingsMethod · 0.95
updateMethod · 0.95
isNullMethod · 0.80

Tested by

no test coverage detected