Grammalecte  Diff

Differences From Artifact [9f37b00cd8]:

To Artifact [0e6bb7b841]:


321
322
323
324
325
326
327
328

329
330

331
332
333
334
335
336
337
321
322
323
324
325
326
327

328
329

330
331
332
333
334
335
336
337







-
+

-
+







}

function getSpellSuggestions (sWord, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("getSpellSuggestions", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }
    let i = 1;
    let i = 0;
    for (let aSugg of oSpellChecker.suggest(sWord)) {
        postMessage(createResponse("getSpellSuggestions", {sWord: sWord, aSugg: aSugg, iSugg: i}, dInfo, true));
        postMessage(createResponse("getSpellSuggestions", {sWord: sWord, aSugg: aSugg, iSuggBlock: i}, dInfo, true));
        i += 1;
    }
}


// Lexicographer