Grammalecte  Check-in [fc3446bfc2]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[js] Add getIgnoreRules
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nodejs
Files: files | file ages | folders
SHA3-256:fc3446bfc2f81f2435aee4f51834a8b0636119cfc56d242fc7b522bbc22e85f8
User & Date: IllusionPerdu 2018-10-21 14:58:01
Context
2018-10-21
15:04
[njs] Add *ignoreRule(s) check-in: ec3136d1bc user: IllusionPerdu tags: nodejs
14:58
[js] Add getIgnoreRules check-in: fc3446bfc2 user: IllusionPerdu tags: nodejs
14:37
Sync to trunk check-in: 18924f57b4 user: IllusionPerdu tags: nodejs
Changes

Changes to gc_core/js/lang_core/gc_engine.js.

89
90
91
92
93
94
95




96
97
98
99
100
101
102

    getRules: function (bParagraph) {
        if (!bParagraph) {
            return gc_rules.lSentenceRules;
        }
        return gc_rules.lParagraphRules;
    },





    ignoreRule: function (sRuleId) {
        _aIgnoredRules.add(sRuleId);
    },

    resetIgnoreRules: function () {
        _aIgnoredRules.clear();







>
>
>
>







89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

    getRules: function (bParagraph) {
        if (!bParagraph) {
            return gc_rules.lSentenceRules;
        }
        return gc_rules.lParagraphRules;
    },

    getIgnoreRules: function (bParagraph) {
        return gc_rules._aIgnoredRules;
    },

    ignoreRule: function (sRuleId) {
        _aIgnoredRules.add(sRuleId);
    },

    resetIgnoreRules: function () {
        _aIgnoredRules.clear();