1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 06:35:46 +01:00

restore guard clause to the head of getMap() to test for uninitialized stacks

This commit is contained in:
Doug Kearns
2007-07-22 12:59:21 +00:00
parent 873809b4d3
commit 1a6d1eb3a8

View File

@@ -122,6 +122,9 @@ function Mappings() //{{{
function getMap(mode, cmd, stack)
{
if (!stack || !stack[mode] || !stack[mode].length)
return null;
var substack = stack[mode];
for (var i = 0; i < substack.length; i++)