|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Function
Defined in php2go.js
| Method Summary | |
Object
|
apply(<Object> obj, <Array> args)
Applies the function on a given object, using the given set of arguments |
Function
|
bind(<Object> obj)
Returns an instance of the function pre-bound to the method owner object |
Number
|
delay()
Calls the function after a given number of miliseconds. |
void
|
extend(<Function> parent, <String> propName)
Creates an inheritance relationship with another function, if both are class constructors. |
void
|
implement()
Adds one or more implementations to the class specificied by the function |
Function
|
methodize(<Function> fn)
Encapsulates the pattern of converting the first argument of the function into its 'this' value |
| Method Detail |
Object apply(<Object> obj, <Array> args)
obj - Object to apply the function
args - Arguments set
Function bind(<Object> obj)
obj - The object that owns the method
Number delay()
void extend(<Function> parent, <String> propName)
parent - Parent class constructor
propName - Prop name that should hold the reference to the parent ctor
void implement()
Function methodize(<Function> fn)
fn - Function that must be applied on the bind argument
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||