The OpenD Programming Language

Event

This is a DOM event, like in javascript. Note that this library never fires events - it is only here for you to use if you want it.

version(dom_with_events)
class Event {
bool defaultPrevented;
bool propagationStopped;
string eventName;
Element srcElement;
Element relatedTarget;
int clientX;
int clientY;
int button;
bool isBubbling;
}

Members

Functions

dispatch
void dispatch()

this dispatches the element using the capture -> target -> bubble process

preventDefault
void preventDefault()

Prevents the default event handler (if there is one) from being called

send
void send()

this sends it only to the target. If you want propagation, use dispatch() instead.

stopPropagation
void stopPropagation()

Stops the event propagation immediately.

Meta