Delegate
| Kind of class: | class |
|---|---|
| Inherits from: | Object |
| Classpath: | mx.utils.Delegate |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
The Delegate class creates a function wrapper to let you run a function in the context
of the original object, rather than in the context of the second object, when you pass a
function from one object to another.
of the original object, rather than in the context of the second object, when you pass a
function from one object to another.
Summary
Constructor
- Delegate (f:Function)
Instance properties
- func : Function
Class methods
- create (obj:Object, func:Function) : Function
- Creates a functions wrapper for the original function so that it runs
Instance methods
- createDelegate (obj:Object) : Function
Constructor
Delegate
function Delegate (
f:Function)
Instance properties
func
private func:Function
(read)
Class methods
create
static function create (
obj:Object,
func:Function) : Function
Creates a functions wrapper for the original function so that it runs
in the provided context.
in the provided context.
parameter:
- obj Context in which to run the function.
paramater:
- func Function to run.
Instance methods
createDelegate
function createDelegate (
obj:Object) : Function