Overview
Comment: | [core][js] use strict + remove useless vars + remove warnings |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | webext2 |
Files: | files | file ages | folders |
SHA3-256: |
7aa5eaf131c5ff01c6ed6d1b9b030b5f |
User & Date: | olr on 2017-08-04 05:44:06 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-04
| ||
06:32 | [core][js][py] nextWord and previousWord: only necessary groups + bug fix for JS check-in: 30b40b6153 user: olr tags: core, webext2 | |
05:44 | [core][js] use strict + remove useless vars + remove warnings check-in: 7aa5eaf131 user: olr tags: core, webext2 | |
05:21 | [core][js] don’t forget to define the function as generator check-in: 8029dad20a user: olr tags: core, webext2 | |
Changes
Modified gc_core/js/lang_core/gc_engine.js from [5d601e4457] to [bccda67b32].
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | // Grammar checker engine |
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | - + | // parse sentence for (let [iStart, iEnd] of this._getSentenceBoundaries(sText)) { if (4 < (iEnd - iStart) < 2000) { dDA.clear(); //echo(sText.slice(iStart, iEnd)); try { |
︙ | |||
196 197 198 199 200 201 202 | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | - + | let oErr = {}; oErr["nStart"] = nOffset + m.start[iGroup]; oErr["nEnd"] = nOffset + m.end[iGroup]; oErr["sLineId"] = sLineId; oErr["sRuleId"] = sRuleId; oErr["sType"] = (sOption) ? sOption : "notype"; // suggestions |
︙ | |||
218 219 220 221 222 223 224 | 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | - + | oErr["aSuggestions"] = capitalizeArray(sRepl.gl_expand(m).split("|")); } else { oErr["aSuggestions"] = sRepl.gl_expand(m).split("|"); } } // Message let sMessage = ""; |
︙ | |||
280 281 282 283 284 285 286 | 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | - + - + | _aIgnoredRules.delete(sRuleId); }, listRules: function* (sFilter=null) { // generator: returns tuple (sOption, sLineId, sRuleId) try { for (let [sOption, lRuleGroup] of this._getRules(true)) { |
︙ |