MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / set

Function set

static/plugins/chart.js/Chart.bundle.js:15054–15071  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

15052 }
15053
15054 function set (config) {
15055 var prop, i;
15056 for (i in config) {
15057 prop = config[i];
15058 if (isFunction(prop)) {
15059 this[i] = prop;
15060 } else {
15061 this['_' + i] = prop;
15062 }
15063 }
15064 this._config = config;
15065 // Lenient ordinal parsing accepts just a number in addition to
15066 // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
15067 // TODO: Remove "ordinalParse" fallback in next major release.
15068 this._dayOfMonthOrdinalParseLenient = new RegExp(
15069 (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
15070 '|' + (/\d{1,2}/).source);
15071 }
15072
15073 function mergeConfigs(parentConfig, childConfig) {
15074 var res = extend({}, parentConfig), prop;

Callers

nothing calls this directly

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected