|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Zapatec.EventDriven
Defined in zpeventdriven.js
Constructor Summary | |
Zapatec.EventDriven()
Base event-driven class. |
Method Summary | |
Object
|
addEventListener(<string> sEv, <function> fLsnr)
Adds event listener to the end of list. |
void
|
fireEvent(<string> sEv)
Fires event. |
object
|
getEventListeners(<string> sEv)
Returns array of listeners for the specified event. |
boolean
|
isEvent(<string> sEv)
Checks if the event exists. |
boolean
|
isEventListener(<string> sEv, <function> fLsnr)
Checks if the event listener is attached to the event. |
void
|
removeEvent(<string> sEv)
Removes all listeners for the event. |
number
|
removeEventListener(<string> sEv, <function> fLsnr)
Removes event listener. |
Object
|
unshiftEventListener(<string> sEv, <function> fLsnr)
Adds event listener to the beginning of list. |
Constructor Detail |
Zapatec.EventDriven()
Method Detail |
Object addEventListener(<string> sEv, <function> fLsnr)
If multiple identical event listeners are registered on the same event, the duplicate instances are discarded. They do not cause the event listener to be called twice, and since the duplicates are discarded, they do not need to be removed manually with the removeEventListener method. Synopsis: oEventDriven.addEventListener('eventName', fEventListener); There is also static method doing the same with global events: Zapatec.EventDriven.addEventListener('globalEventName', fEventListener);
sEv
- Event name
fLsnr
- Event listener
void fireEvent(<string> sEv)
Synopsis: oEventDriven.fireEvent('eventName'); There is also static method doing the same with global events: Zapatec.EventDriven.fireEvent('globalEventName');
sEv
- Event name
object getEventListeners(<string> sEv)
Synopsis: oEventDriven.getEventListeners('eventName'); There is also static method doing the same with global events: Zapatec.EventDriven.getEventListeners('globalEventName');
sEv
- Event name
boolean isEvent(<string> sEv)
Synopsis: oEventDriven.isEvent('eventName'); There is also static method doing the same with global events: Zapatec.EventDriven.isEvent('globalEventName');
sEv
- Event name
boolean isEventListener(<string> sEv, <function> fLsnr)
Synopsis: oEventDriven.isEventListener('eventName', fEventListener); There is also static method doing the same with global events: Zapatec.EventDriven.isEventListener('globalEventName', fEventListener);
sEv
- Event name
fLsnr
- Event listener
void removeEvent(<string> sEv)
Synopsis: oEventDriven.removeEvent('eventName'); There is also static method doing the same with global events: Zapatec.EventDriven.removeEvent('globalEventName');
sEv
- Event name
number removeEventListener(<string> sEv, <function> fLsnr)
Synopsis: oEventDriven.removeEventListener('eventName', fEventListener); There is also static method doing the same with global events: Zapatec.EventDriven.removeEventListener('globalEventName', fEventListener);
sEv
- Event name
fLsnr
- Event listener
Object unshiftEventListener(<string> sEv, <function> fLsnr)
If multiple identical event listeners are registered on the same event, the duplicate instances are discarded. They do not cause the event listener to be called twice, and since the duplicates are discarded, they do not need to be removed manually with the removeEventListener method. Synopsis: oEventDriven.unshiftEventListener('eventName', fEventListener); There is also static method doing the same with global events: Zapatec.EventDriven.unshiftEventListener('globalEventName', fEventListener);
sEv
- Event name
fLsnr
- Event listener
|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |