MediaWiki:Gadget-markadmins.js: Difference between revisions

Jump to navigation Jump to search
fix to use "var" instead of "let" in loops as only ECMAScript 5 is allowed; this is fine in terms of scope
m (Undo revision 20694 by Dmehus (talk) Revert reversion; they're no longer showing in either case)
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 (let i = 0; i < key.length; i++) {
for (var i = 0; i < key.length; i++) {
userSet[key[i]] = [];
userSet[key[i]] = [];
}
}
for (let i = 0; i < list.length; i++) {
for (var i = 0; i < list.length; i++) {
for (let j = 0; j < groups.length; j++) {
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);
78

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu