Grammalecte  Check-in [6aa7638d90]

Overview
Comment:[core][js] fix wrong filter (was Array comprehension)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | webext2_fix
Files: files | file ages | folders
SHA3-256: 6aa7638d907c2969917583c3ae7b977bd112543e5717855e82840945f114e1e1
User & Date: olr on 2017-08-06 10:09:10
Other Links: branch diff | manifest | tags
Context
2017-08-06
12:14
[core][js] set echo as console.log if no require available check-in: 7cc552ce5a user: olr tags: core, webext2_fix
10:09
[core][js] fix wrong filter (was Array comprehension) check-in: 6aa7638d90 user: olr tags: core, webext2_fix
09:10
[core][js] useless comments check-in: b1dc023d0a user: olr tags: core, webext2_fix
Changes

Modified gc_core/js/lang_core/gc_engine.js from [eedf1b90cc] to [7b6c2ffd4b].

561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
    }
    if (!_dAnalyses.has(sWord) && !_storeMorphFromFSA(sWord)) {
        return true;
    }
    if (_dAnalyses.get(sWord).length === 1) {
        return true;
    }
    let lSelect = _dAnalyses.get(sWord).filter( sMorph => sMorph.search(sPattern) === -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != _dAnalyses.get(sWord).length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {
        dDA.set(nPos, lDefaul);
    }







|







561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
    }
    if (!_dAnalyses.has(sWord) && !_storeMorphFromFSA(sWord)) {
        return true;
    }
    if (_dAnalyses.get(sWord).length === 1) {
        return true;
    }
    let lSelect = _dAnalyses.get(sWord).filter( sMorph => sMorph.search(sPattern) !== -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != _dAnalyses.get(sWord).length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {
        dDA.set(nPos, lDefaul);
    }