summaryrefslogtreecommitdiff
path: root/ext/bg/js/deinflector.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
commit8efe5b1fbf6bf1539c93f25b6b87918c1a651f00 (patch)
tree6d407c4dc5dcb6d93ad38c10f2721d5d24ddd2a3 /ext/bg/js/deinflector.js
parentbf9925ec9cabd5a755152aa89df1f87e38d53534 (diff)
workaround for broken const in firefox
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r--ext/bg/js/deinflector.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js
index 6e480068..256ae1a1 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 (const rule of this.rules) {
- for (const definition of definitions) {
+ for (let rule of this.rules) {
+ for (let definition of definitions) {
if (definition.rules.includes(rule)) {
this.definitions.push(definition);
}
@@ -46,11 +46,11 @@ class Deinflection {
};
const promises = [];
- for (const reason in reasons) {
- for (const variant of reasons[reason]) {
+ for (let reason in reasons) {
+ for (let variant of reasons[reason]) {
let accept = this.rules.length === 0;
if (!accept) {
- for (const rule of this.rules) {
+ for (let rule of this.rules) {
if (variant.rulesIn.includes(rule)) {
accept = true;
break;
@@ -95,8 +95,8 @@ class Deinflection {
}
const results = [];
- for (const child of this.children) {
- for (const result of child.gather()) {
+ for (let child of this.children) {
+ for (let result of child.gather()) {
if (this.reason.length > 0) {
result.reasons.push(this.reason);
}