mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 16:45:45 +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)
|
function getMap(mode, cmd, stack)
|
||||||
{
|
{
|
||||||
|
if (!stack || !stack[mode] || !stack[mode].length)
|
||||||
|
return null;
|
||||||
|
|
||||||
var substack = stack[mode];
|
var substack = stack[mode];
|
||||||
|
|
||||||
for (var i = 0; i < substack.length; i++)
|
for (var i = 0; i < substack.length; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user