mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
![]() This patch adds the EventTarget class and makes Node inherit from it. You can register event listeners on an EventTarget, and when you call dispatch_event() on it, the event listeners will get invoked. An event listener is basically a wrapper around a JS::Function*. This is pretty far from how DOM events should eventually work, but it's a place to start and we'll build more on top of this. :^) |
||
---|---|---|
.. | ||
DocumentWrapper.cpp | ||
DocumentWrapper.h | ||
EventListenerWrapper.cpp | ||
EventListenerWrapper.h | ||
EventTargetWrapper.cpp | ||
EventTargetWrapper.h | ||
NodeWrapper.cpp | ||
NodeWrapper.h | ||
Wrappable.cpp | ||
Wrappable.h | ||
Wrapper.h |