1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-02 23:03:42 +02:00

Death to for each.

This commit is contained in:
Kris Maglione
2014-02-24 19:03:49 -08:00
parent 78a6de9c3a
commit 5b38465a1c
20 changed files with 48 additions and 46 deletions

View File

@@ -204,11 +204,11 @@ var Highlights = Module("Highlight", {
node.setAttributeNS(NS, "highlight", group);
let groups = group.split(" ");
for each (let group in groups)
for (let group of groups)
this.loaded[group] = true;
if (applyBindings)
for each (let group in groups) {
for (let group of groups) {
if (applyBindings.bindings && group in applyBindings.bindings)
applyBindings.bindings[group](node, applyBindings);
else if (group in template.bindings)