1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 01:34:11 +01:00

Override RealSet#add to match Set.add

This commit is contained in:
Kris Maglione
2014-02-22 10:07:58 -08:00
parent 9bb6dce76d
commit 619b414ca7
9 changed files with 23 additions and 44 deletions

View File

@@ -269,9 +269,8 @@ overlay.overlayWindow(Object.keys(config.overlays),
if (loaded.has(module.className))
return;
if (seen.has(module.className))
if (seen.add(module.className))
throw Error("Module dependency loop.");
seen.add(module.className);
for (let dep in values(module.requires))
this.loadModule(Module.constructors[dep], module.className);