MCPcopy Index your code
hub / github.com/csev/py4e / copyConfig

Function copyConfig

code/gmane/Chart.bundle.js:1722–1767  ·  view source on GitHub ↗
(to, from)

Source from the content-addressed store, hash-verified

1720 var momentProperties = utils_hooks__hooks.momentProperties = [];
1721
1722 function copyConfig(to, from) {
1723 var i, prop, val;
1724
1725 if (typeof from._isAMomentObject !== 'undefined') {
1726 to._isAMomentObject = from._isAMomentObject;
1727 }
1728 if (typeof from._i !== 'undefined') {
1729 to._i = from._i;
1730 }
1731 if (typeof from._f !== 'undefined') {
1732 to._f = from._f;
1733 }
1734 if (typeof from._l !== 'undefined') {
1735 to._l = from._l;
1736 }
1737 if (typeof from._strict !== 'undefined') {
1738 to._strict = from._strict;
1739 }
1740 if (typeof from._tzm !== 'undefined') {
1741 to._tzm = from._tzm;
1742 }
1743 if (typeof from._isUTC !== 'undefined') {
1744 to._isUTC = from._isUTC;
1745 }
1746 if (typeof from._offset !== 'undefined') {
1747 to._offset = from._offset;
1748 }
1749 if (typeof from._pf !== 'undefined') {
1750 to._pf = getParsingFlags(from);
1751 }
1752 if (typeof from._locale !== 'undefined') {
1753 to._locale = from._locale;
1754 }
1755
1756 if (momentProperties.length > 0) {
1757 for (i in momentProperties) {
1758 prop = momentProperties[i];
1759 val = from[prop];
1760 if (typeof val !== 'undefined') {
1761 to[prop] = val;
1762 }
1763 }
1764 }
1765
1766 return to;
1767 }
1768
1769 var updateInProgress = false;
1770

Callers 3

MomentFunction · 0.85
configFromStringAndArrayFunction · 0.85

Calls 1

getParsingFlagsFunction · 0.85

Tested by

no test coverage detected