1
0
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:
Doug Kearns
2009-06-28 22:34:22 +10:00
parent 3628ff8803
commit e2e31528e2
7 changed files with 27 additions and 27 deletions

View File

@@ -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++)