(config)
| 254 | |
| 255 | // Moment prototype object |
| 256 | function Moment(config) { |
| 257 | copyConfig(this, config); |
| 258 | this._d = new Date(config._d != null ? config._d.getTime() : NaN); |
| 259 | if (!this.isValid()) { |
| 260 | this._d = new Date(NaN); |
| 261 | } |
| 262 | // Prevent infinite loop in case updateOffset creates new moment |
| 263 | // objects. |
| 264 | if (updateInProgress === false) { |
| 265 | updateInProgress = true; |
| 266 | hooks.updateOffset(this); |
| 267 | updateInProgress = false; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | function isMoment(obj) { |
| 272 | return ( |
nothing calls this directly
no test coverage detected