1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 02:42:28 +01:00

Fix :unmap.

This commit is contained in:
Doug Kearns
2015-12-22 23:45:16 +11:00
parent 5ad7574353
commit 68871ff16f

View File

@@ -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;
}
}