Function Class Reference
[ECMAScript/QtScript - Native Objects]

ECMASCript Function prototype object. More...

Inheritance diagram for Function:

Object List of all members.

Methods

Object apply (Object thisArg, Array argArray)
Object call (thisArg, arg1, arg2,...)
String toString ()

Constructors

 Function (String p1, String p2,..., String pn, String body)

Detailed Description

ECMASCript Function prototype object.

Todo:
Descriptions
Example:
    var oMyFunction = function()
    {
    }


Constructor & Destructor Documentation

Function::Function ( String  p1,
String  p2,
  ...,
String  pn,
String  body 
)

Default Constructor. Creates a new function. All arguments are optional - zero or more argument names may be specified, the last argument, if any, is always used as the body of the function.

Parameters:
p1 The name of the first parameter
p2 The name of the second parameter
pn The name of the last parameter
body The text of the executable code of the function.


Member Function Documentation

Object Function::apply ( Object  thisArg,
Array  argArray 
)

Performs a function call.

Parameters:
thisArg The object that serves as the 'this' value for the function call. If undefined, or not provided, the global object is used.
argArray An array of arguments for the function, if not provided, the function is called without any arguments.
Returns:
The return value of the function.

Object Function::call ( thisArg  ,
arg1  ,
arg2  ,
  ... 
)

Performs a function call.

Parameters:
thisArg The object that serves as the 'this' value for the function call. If undefined, or not provided, the global object is used.
arg1 The first argument for the function.
arg2 The second argument for the function.
Returns:
The return value of the function.

String Function::toString (  ) 

Returns:
A string representation of the Function.

Reimplemented from Object.


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.