mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-01 09:45:45 +01:00
Normalise the use of "func" vs "fn" for function references.
"func" had the numbers.
This commit is contained in:
@@ -12,7 +12,7 @@ const template = { //{{{
|
||||
add: function add(a, b) a + b,
|
||||
join: function join(c) function (a, b) a + c + b,
|
||||
|
||||
map: function map(iter, fn, sep, interruptable)
|
||||
map: function map(iter, func, sep, interruptable)
|
||||
{
|
||||
if (iter.length) // FIXME: Kludge?
|
||||
iter = util.Array.itervalues(iter);
|
||||
@@ -20,7 +20,7 @@ const template = { //{{{
|
||||
let n = 0;
|
||||
for each (let i in Iterator(iter))
|
||||
{
|
||||
let val = fn(i);
|
||||
let val = func(i);
|
||||
if (val == undefined)
|
||||
continue;
|
||||
if (sep && n++)
|
||||
|
||||
Reference in New Issue
Block a user