Custom Events Manager  1.6.0

BLOBkit Javascript Library > event > TVB.CustomEvent
Search:
 
Filters

static Class TVB.CustomEvent

BLOBkit custom event class

Methods

createEvent

Event createEvent ( eventName )
Creates a new custom event
Parameters:
eventName <String> The name of the event
Returns: Event
The event

fireEvent

void fireEvent ( ev , params )
Fires a custom event
Parameters:
ev <Event> The custom event
params <Object> Parameters to be passed to the callback
Returns: void

stopEvent

void stopEvent ( ev )
Stops event propagation and prevents the default behaviour
Parameters:
ev <Event> The custom event
Returns: void

stopPropagation

void stopPropagation ( ev )
Stops event propagation
Parameters:
ev <Event> The custom event
Returns: void

subscribeEvent

void subscribeEvent ( ev , callback , obj , override )
Subscribes to a custom event
Parameters:
ev <Event> The custom event
callback <Function> A function to be raised
obj <Object> An object to be passed along when the event fires
override <Boolean> If true, the obj passed in becomes the execution scope of the listener
Returns: void

unsubscribeEvent

void unsubscribeEvent ( ev )
Unsubscribes to a custom event
Parameters:
ev <Event> The custom event
Returns: void


Copyright © 2010 TVBLOB S.r.l. All rights reserved. The BLOBkit library is a resource ofBLOBforge.