MCPcopy
hub / github.com/autoNumeric/autoNumeric / _mergeSettings

Method _mergeSettings

src/AutoNumeric.js:3776–3778  ·  view source on GitHub ↗

* Merge the `newSettings` given as parameters into the current element settings. * * WARNING: Using `Object.assign()` here means the merge is not recursive and only one depth is merged. * cf. http://stackoverflow.com/a/39188108/2834898 * cf. tests on http://codepen.io/AnotherLinu

(...newSettings)

Source from the content-addressed store, hash-verified

3774 * @private
3775 */
3776 _mergeSettings(...newSettings) {
3777 Object.assign(this.settings, ...newSettings);
3778 }
3779
3780 /**
3781 * Return a new object with the current element settings merged with the new settings.

Callers 2

_setSettingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected