diff options
Diffstat (limited to 'Libraries/LibWeb/Bindings/EventTargetWrapper.cpp')
-rw-r--r-- | Libraries/LibWeb/Bindings/EventTargetWrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/EventTargetWrapper.cpp b/Libraries/LibWeb/Bindings/EventTargetWrapper.cpp index 46d24ca454..dd98284a25 100644 --- a/Libraries/LibWeb/Bindings/EventTargetWrapper.cpp +++ b/Libraries/LibWeb/Bindings/EventTargetWrapper.cpp @@ -37,7 +37,8 @@ namespace Web { namespace Bindings { EventTargetWrapper::EventTargetWrapper(EventTarget& impl) - : m_impl(impl) + : Wrapper(*interpreter().object_prototype()) + , m_impl(impl) { put_native_function("addEventListener", add_event_listener, 2); } |