[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

API: event-custom Do (YUI Library)

_inject

private static string _inject ( when , fn , obj , sFn , c )

Execute the supplied method after the specified function

Parameters:
when <string> before or after
fn <Function> the function to execute
obj <object> the object hosting the method to displace
sFn <string> the name of the method to displace
c <object> The execution context for fn
Returns: string
handle for the subscription

after

static string after ( fn , obj , sFn , c , arg* )

Execute the supplied method after the specified function

Parameters:
fn <Function> the function to execute
obj <object> the object hosting the method to displace
sFn <string> the name of the method to displace
c <object> The execution context for fn
arg* <mixed> 0..n additional arguments to supply to the subscriber
Returns: string
handle for the subscription

before

static string before ( fn , obj , sFn , c , arg* )

Execute the supplied method before the specified function

Parameters:
fn <Function> the function to execute
obj <object> the object hosting the method to displace
sFn <string> the name of the method to displace
c <object> The execution context for fn
arg* <mixed> 0..n additional arguments to supply to the subscriber when the event fires.
Returns: string
handle for the subscription

detach

void detach ( handle )

Detach a before or after subscription

Parameters:
handle <string> the subscription handle