1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:48:00 +01:00

simplify expandLeader()

This commit is contained in:
Doug Kearns
2008-10-30 03:14:01 +00:00
parent e25f27eea3
commit d2bc7aa20f

View File

@@ -128,12 +128,7 @@ function Mappings() //{{{
}
}
function expandLeader(keyString)
{
var leaderRegexp = /<Leader>/i;
var currentLeader = mappings.getMapLeader();
return keyString.replace(leaderRegexp, currentLeader);
}
function expandLeader(keyString) keyString.replace(/<Leader>/i, mappings.getMapLeader())
function mappingsIterator(modes, stack)
{