Main Page | Packages | Class Tree | Index | Help

xp.util

class Delegate

Object
  |
  +--xp.util.Delegate


class Delegate
extends Object

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.



Method Summary

static
create ( obj: Object, func ): Function
Creates a functions wrapper for the original function so that it runs in the provided context.



Method Documentation

create

static function create(obj: Object,
 func): Function
Creates a functions wrapper for the original function so that it runs in the provided context.

additonal arguments can be passed on the create call and they will be used when the function is invoked. i.e Delegate.create(this, handler, 30, true, "press")


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc