mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:32:30 +02:00
Fix :unmap.
This commit is contained in:
1 parent
5ad7574353
commit
68871ff16f
1 file changed
+2
-2
@@ -291,8 +291,8 @@ var MapHive = Class("MapHive", Contexts.Hive, {
|
||||
delete stack.states;
|
||||
map.names.splice(j, 1);
|
||||
if (map.names.length == 0) // FIX ME.
|
||||
for (let [mode, stack] of this.stacks)
|
||||
this.stacks.set(mode.id, MapHive.Stack(stack.filter(m => m != map)));
|
||||
for (let [modeId, stack] of this.stacks)
|
||||
this.stacks.set(modeId, MapHive.Stack(stack.filter(m => m != map)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user