Sha256: 85377bd25cbb563eba2ec6275b86e1dcac7e13fd57d04e179d84af88b51c841c

Contents?: true

Size: 548 Bytes

Versions: 17

Compression:

Stored size: 548 Bytes

Contents

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
    };
}

export default function getParsingFlags(m) {
    if (m._pf == null) {
        m._pf = defaultParsingFlags();
    }
    return m._pf;
}

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
active_record_survey_api-0.0.19 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.18 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.17 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.14 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.12 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
locomotivecms-3.2.0.rc1 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
locomotivecms-3.1.1 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
locomotivecms-3.1.0 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.11 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
locomotivecms-3.1.0.rc3 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
locomotivecms-3.1.0.rc2 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
locomotivecms-3.1.0.rc1 vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.7 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
active_record_survey_api-0.0.6 spec/test_app/vendor/assets/bower_components/moment/src/lib/create/parsing-flags.js
date_picker-0.0.8 test/dummy/vendor/assets/components/moment/src/lib/create/parsing-flags.js
date_picker-0.0.7 test/dummy/vendor/assets/components/moment/src/lib/create/parsing-flags.js
sedge_cms-0.0.1 vendor/assets/components/moment/src/lib/create/parsing-flags.js