MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / Moment

Function Moment

static/plugins/chart.js/Chart.bundle.js:14944–14957  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

14942
14943 // Moment prototype object
14944 function Moment(config) {
14945 copyConfig(this, config);
14946 this._d = new Date(config._d != null ? config._d.getTime() : NaN);
14947 if (!this.isValid()) {
14948 this._d = new Date(NaN);
14949 }
14950 // Prevent infinite loop in case updateOffset creates new moment
14951 // objects.
14952 if (updateInProgress === false) {
14953 updateInProgress = true;
14954 hooks.updateOffset(this);
14955 updateInProgress = false;
14956 }
14957 }
14958
14959 function isMoment (obj) {
14960 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