1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 13:34:11 +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

@@ -372,18 +372,18 @@ const util = { //{{{
}),
/**
* Returns the array that results from applying <b>fn</b> to each property
* of <b>obj</b>.
* Returns the array that results from applying <b>func</b> to each
* property of <b>obj</b>.
*
* @param {Object} obj
* @param {function} fn
* @param {function} func
* @returns {Array}
*/
map: function map(obj, fn)
map: function map(obj, func)
{
let ary = [];
for (let i in Iterator(obj))
ary.push(fn(i));
ary.push(func(i));
return ary;
},