(to, from)
| 206 | updateInProgress = false; |
| 207 | |
| 208 | function copyConfig(to, from) { |
| 209 | var i, prop, val; |
| 210 | |
| 211 | if (!isUndefined(from._isAMomentObject)) { |
| 212 | to._isAMomentObject = from._isAMomentObject; |
| 213 | } |
| 214 | if (!isUndefined(from._i)) { |
| 215 | to._i = from._i; |
| 216 | } |
| 217 | if (!isUndefined(from._f)) { |
| 218 | to._f = from._f; |
| 219 | } |
| 220 | if (!isUndefined(from._l)) { |
| 221 | to._l = from._l; |
| 222 | } |
| 223 | if (!isUndefined(from._strict)) { |
| 224 | to._strict = from._strict; |
| 225 | } |
| 226 | if (!isUndefined(from._tzm)) { |
| 227 | to._tzm = from._tzm; |
| 228 | } |
| 229 | if (!isUndefined(from._isUTC)) { |
| 230 | to._isUTC = from._isUTC; |
| 231 | } |
| 232 | if (!isUndefined(from._offset)) { |
| 233 | to._offset = from._offset; |
| 234 | } |
| 235 | if (!isUndefined(from._pf)) { |
| 236 | to._pf = getParsingFlags(from); |
| 237 | } |
| 238 | if (!isUndefined(from._locale)) { |
| 239 | to._locale = from._locale; |
| 240 | } |
| 241 | |
| 242 | if (momentProperties.length > 0) { |
| 243 | for (i = 0; i < momentProperties.length; i++) { |
| 244 | prop = momentProperties[i]; |
| 245 | val = from[prop]; |
| 246 | if (!isUndefined(val)) { |
| 247 | to[prop] = val; |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | return to; |
| 253 | } |
| 254 | |
| 255 | // Moment prototype object |
| 256 | function Moment(config) { |
no test coverage detected