(config)
| 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; |
nothing calls this directly
no test coverage detected