diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-02-26 11:12:54 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-02-26 11:12:54 -0800 |
commit | 0d2e9be0cebe6d8351d1cb7d6bbcc59b75d708ab (patch) | |
tree | 1296d60c54a7b1259c4603b9fb89c46904e71239 /ext/bg/js/deinflector.js | |
parent | 32f95e59a9c5612d2b5658ea8a70b55ec17cca18 (diff) |
wip
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r-- | ext/bg/js/deinflector.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js index 256ae1a1..6e480068 100644 --- a/ext/bg/js/deinflector.js +++ b/ext/bg/js/deinflector.js @@ -32,8 +32,8 @@ class Deinflection { if (this.rules.length === 0) { this.definitions = definitions; } else { - for (let rule of this.rules) { - for (let definition of definitions) { + for (const rule of this.rules) { + for (const definition of definitions) { if (definition.rules.includes(rule)) { this.definitions.push(definition); } @@ -46,11 +46,11 @@ class Deinflection { }; const promises = []; - for (let reason in reasons) { - for (let variant of reasons[reason]) { + for (const reason in reasons) { + for (const variant of reasons[reason]) { let accept = this.rules.length === 0; if (!accept) { - for (let rule of this.rules) { + for (const rule of this.rules) { if (variant.rulesIn.includes(rule)) { accept = true; break; @@ -95,8 +95,8 @@ class Deinflection { } const results = []; - for (let child of this.children) { - for (let result of child.gather()) { + for (const child of this.children) { + for (const result of child.gather()) { if (this.reason.length > 0) { result.reasons.push(this.reason); } |