diff options
Diffstat (limited to 'public/bower_components/moment/src/lib/create/parsing-flags.js')
-rw-r--r-- | public/bower_components/moment/src/lib/create/parsing-flags.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/public/bower_components/moment/src/lib/create/parsing-flags.js b/public/bower_components/moment/src/lib/create/parsing-flags.js new file mode 100644 index 0000000..c47173f --- /dev/null +++ b/public/bower_components/moment/src/lib/create/parsing-flags.js @@ -0,0 +1,26 @@ +function defaultParsingFlags() { + // We need to deep clone this object. + return { + empty : false, + unusedTokens : [], + unusedInput : [], + overflow : -2, + charsLeftOver : 0, + nullInput : false, + invalidMonth : null, + invalidFormat : false, + userInvalidated : false, + iso : false, + parsedDateParts : [], + meridiem : null, + rfc2822 : false, + weekdayMismatch : false + }; +} + +export default function getParsingFlags(m) { + if (m._pf == null) { + m._pf = defaultParsingFlags(); + } + return m._pf; +} |