MediaWiki:Gadget-markadmins.js: Difference between revisions
From Test Wiki
Content deleted Content added
Tag: Undo |
fix to use "var" instead of "let" in loops as only ECMAScript 5 is allowed; this is fine in terms of scope |
||
| Line 64: | Line 64: | ||
userSet = {}; |
userSet = {}; |
||
for ( |
for (var i = 0; i < key.length; i++) { |
||
userSet[key[i]] = []; |
userSet[key[i]] = []; |
||
} |
} |
||
for ( |
for (var i = 0; i < list.length; i++) { |
||
for ( |
for (var j = 0; j < groups.length; j++) { |
||
if (list[i].groups.includes(groups[j])) { |
if (list[i].groups.includes(groups[j])) { |
||
userSet[key[j]].push(list[i].name); |
userSet[key[j]].push(list[i].name); |
||