Yahoo! UI Library

event-custom  3.1.0

Yahoo! UI Library > event-custom > EventHandle
Search:
 
Filters

Class EventHandle

Return value from all subscribe operations

Constructor

EventHandle ( evt , sub )
Parameters:
evt <CustomEvent> the custom event
sub <Subscriber> the subscriber

Properties

evt - CustomEvent

The custom event

sub - Subscriber

The subscriber object

Methods

detach

void detach ( )
Detaches this subscriber

monitor

EventHandle monitor ( what )
Monitor the event state for the subscribed event. The first parameter is what should be monitored, the rest are the normal parameters when subscribing to an event.
Parameters:
what <string> what to monitor ('attach', 'detach', 'publish')
Returns: EventHandle
return value from the monitor event subscription


Copyright © 2010 Yahoo! Inc. All rights reserved.