(config)
| 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); |
nothing calls this directly
no test coverage detected