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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user