Grammalecte  Check-in [1b2e823757]

Overview
Comment:[graphspell][js] ibdawg: remove useless var in constructor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | multid
Files: files | file ages | folders
SHA3-256: 1b2e82375737d072da4fe9e4a7c5255ce49300a3f6841d437abdd67344005c03
User & Date: olr on 2018-02-13 14:25:32
Other Links: branch diff | manifest | tags
Context
2018-02-13
14:26
[core] use spellchecker instead of ibdawg directly check-in: 62304c0cd5 user: olr tags: core, multid
14:25
[graphspell][js] ibdawg: remove useless var in constructor check-in: 1b2e823757 user: olr tags: graphspell, multid
14:24
[graphspell][js] fix variables name check-in: 63ccb31875 user: olr tags: graphspell, multid
Changes

Modified graphspell-js/ibdawg.js from [cea88b04de] to [508f46740c].

    85     85       // INDEXABLE BINARY DIRECT ACYCLIC WORD GRAPH
    86     86   
    87     87       constructor (param1, sPath="") {
    88     88           // param1 can be a filename or a object with all the necessary data.
    89     89           try {
    90     90               let oData = null;
    91     91               if (typeof(param1) == "string") {
    92         -                let sDicName = param1;
    93         -                let sURL = (sPath !== "") ? sPath + "/" + sDicName : "resource://grammalecte/graphspell/_dictionaries/"+sDicName;
           92  +                let sURL = (sPath !== "") ? sPath + "/" + param1 : "resource://grammalecte/graphspell/_dictionaries/"+param1;
    94     93                   oData = JSON.parse(helpers.loadFile(sURL));
    95     94               } else {
    96     95                   oData = param1;
    97     96               }
    98     97               Object.assign(this, oData);
    99     98           }
   100     99           catch (e) {