summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/EventTargetWrapperFactory.cpp
blob: 684da8bf8dc7a6ccc4c94e4b196b87aafe9d6e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/Bindings/EventTargetWrapperFactory.h>
#include <LibWeb/DOM/EventTarget.h>

namespace Web::Bindings {

JS::Object* wrap(JS::GlobalObject& global_object, DOM::EventTarget& target)
{
    return target.create_wrapper(global_object);
}

}