1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 19:35: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

@@ -1353,22 +1353,22 @@ function Options() //{{{
},
/**
* Executes <b>fn</b> with a new preference context. When <b>fn</b>
* Executes <b>func</b> with a new preference context. When <b>func</b>
* returns, the context is popped and any preferences set via
* {@link #setPref} or {@link #invertPref} are restored to their
* previous values.
*
* @param {function} fn The function to call.
* @param {Object} fn The 'this' object with which to call <b>fn</b>
* @param {function} func The function to call.
* @param {Object} func The 'this' object with which to call <b>func</b>
* @see #pushContext
* @see #popContext
*/
withContext: function (fn, self)
withContext: function (func, self)
{
try
{
this.pushContext();
return fn.call(self);
return func.call(self);
}
finally
{