MCPcopy Create free account
hub / github.com/csev/py4e / Moment

Function Moment

code/gmane/Chart.bundle.js:1772–1782  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

1770
1771 // Moment prototype object
1772 function Moment(config) {
1773 copyConfig(this, config);
1774 this._d = new Date(config._d != null ? config._d.getTime() : NaN);
1775 // Prevent infinite loop in case updateOffset creates new moment
1776 // objects.
1777 if (updateInProgress === false) {
1778 updateInProgress = true;
1779 utils_hooks__hooks.updateOffset(this);
1780 updateInProgress = false;
1781 }
1782 }
1783
1784 function isMoment (obj) {
1785 return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);

Callers

nothing calls this directly

Calls 1

copyConfigFunction · 0.85

Tested by

no test coverage detected