summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/EventTarget.cpp
blob: 8b6e6224db0960b77263176b01cf2aa1ca491a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <LibWeb/DOM/EventListener.h>
#include <LibWeb/DOM/EventTarget.h>

namespace Web {

EventTarget::EventTarget()
{
}

EventTarget::~EventTarget()
{
}

void EventTarget::add_event_listener(String event_name, NonnullRefPtr<EventListener> listener)
{
    m_listeners.append({ move(event_name), move(listener) });
}

}