Class Index | File Index

Modules


Panels


Templates


Services (XPCOM)


Libraries


All Classes


Report Doc Issue | How To Comment Firebug Code

Class Func

Utility for Functions

Defined in: function.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Func()
Method Summary
Method Attributes Method Name and Description
<static>  
Func.bindFixed(fn, thisObject)
Creates a new function that, when called, uses the provided this value and arguments.
<static>  
Func.bindRight(fn, thisObject)
Creates a new function that, when called, uses the provided this value and appends the provided arguments.
Class Detail
Func()
Method Detail
<static> {function} Func.bindFixed(fn, thisObject)
Creates a new function that, when called, uses the provided this value and arguments. At the contrary of Function.prototype.bind, any parameter provided at the call is ignored.
Parameters:
{function} fn
The function to bind
{*} thisObject
The object to pass as the `this` value
{*} ...args
the series of parameters to pass to the new function
Returns:
{function} the new Function

<static> {function} Func.bindRight(fn, thisObject)
Creates a new function that, when called, uses the provided this value and appends the provided arguments. Note that it differs from Function.prototype.bind which prepends the provided arguments (that is why this function is called bindRight).
Parameters:
{function} fn
The function to bind
{*} thisObject
The object to pass as the this value
{*} ...args
the series of parameters to pass to the new function
Returns:
{function} the new function

Documentation generated by JsDoc Toolkit 2.3.0 on Sat Jan 05 2013 23:10:39 GMT+0100 (CET)