mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 05:04:11 +01:00
Fix :unmap.
This commit is contained in:
@@ -291,8 +291,8 @@ var MapHive = Class("MapHive", Contexts.Hive, {
|
|||||||
delete stack.states;
|
delete stack.states;
|
||||||
map.names.splice(j, 1);
|
map.names.splice(j, 1);
|
||||||
if (map.names.length == 0) // FIX ME.
|
if (map.names.length == 0) // FIX ME.
|
||||||
for (let [mode, stack] of this.stacks)
|
for (let [modeId, stack] of this.stacks)
|
||||||
this.stacks.set(mode.id, MapHive.Stack(stack.filter(m => m != map)));
|
this.stacks.set(modeId, MapHive.Stack(stack.filter(m => m != map)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user