Skip to content

Commit 33cc038

Browse files
committed
Fix "TypeError: abbr.removeMode is not a function" on :abclear
1 parent 73b4fe1 commit 33cc038

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/content/abbreviations.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ const Abbreviations = Module("abbreviations", {
199199
for (let mode of modes) {
200200
if (!(mode in this.abbrevs))
201201
return;
202-
for (let [, abbr] in this.abbrevs[mode])
203-
abbr.removeMode(mode);
202+
Object.values(this.abbrevs[mode]).forEach(abbr => abbr.removeMode(mode));
204203
delete this.abbrevs[mode];
205204
}
206205
}

0 commit comments

Comments
 (0)