(to, from)
| 14892 | var momentProperties = hooks.momentProperties = []; |
| 14893 | |
| 14894 | function copyConfig(to, from) { |
| 14895 | var i, prop, val; |
| 14896 | |
| 14897 | if (!isUndefined(from._isAMomentObject)) { |
| 14898 | to._isAMomentObject = from._isAMomentObject; |
| 14899 | } |
| 14900 | if (!isUndefined(from._i)) { |
| 14901 | to._i = from._i; |
| 14902 | } |
| 14903 | if (!isUndefined(from._f)) { |
| 14904 | to._f = from._f; |
| 14905 | } |
| 14906 | if (!isUndefined(from._l)) { |
| 14907 | to._l = from._l; |
| 14908 | } |
| 14909 | if (!isUndefined(from._strict)) { |
| 14910 | to._strict = from._strict; |
| 14911 | } |
| 14912 | if (!isUndefined(from._tzm)) { |
| 14913 | to._tzm = from._tzm; |
| 14914 | } |
| 14915 | if (!isUndefined(from._isUTC)) { |
| 14916 | to._isUTC = from._isUTC; |
| 14917 | } |
| 14918 | if (!isUndefined(from._offset)) { |
| 14919 | to._offset = from._offset; |
| 14920 | } |
| 14921 | if (!isUndefined(from._pf)) { |
| 14922 | to._pf = getParsingFlags(from); |
| 14923 | } |
| 14924 | if (!isUndefined(from._locale)) { |
| 14925 | to._locale = from._locale; |
| 14926 | } |
| 14927 | |
| 14928 | if (momentProperties.length > 0) { |
| 14929 | for (i = 0; i < momentProperties.length; i++) { |
| 14930 | prop = momentProperties[i]; |
| 14931 | val = from[prop]; |
| 14932 | if (!isUndefined(val)) { |
| 14933 | to[prop] = val; |
| 14934 | } |
| 14935 | } |
| 14936 | } |
| 14937 | |
| 14938 | return to; |
| 14939 | } |
| 14940 | |
| 14941 | var updateInProgress = false; |
| 14942 |
no test coverage detected