mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 22:27:58 +01:00
Override RealSet#add to match Set.add
This commit is contained in:
@@ -450,8 +450,7 @@ var Modes = Module("modes", {
|
||||
res = [],
|
||||
queue = [this].concat(this.bases);
|
||||
for (let mode in array.iterValues(queue))
|
||||
if (!seen.has(mode)) {
|
||||
seen.add(mode);
|
||||
if (!seen.add(mode)) {
|
||||
res.push(mode);
|
||||
queue.push.apply(queue, mode.bases);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user