mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Split JS wrapper constructors into construct/initialize
This commit is contained in:
parent
06e29fac57
commit
03da70c7d0
31 changed files with 107 additions and 55 deletions
|
@ -38,8 +38,12 @@
|
|||
namespace Web {
|
||||
namespace Bindings {
|
||||
|
||||
ElementWrapper::ElementWrapper(Element& element)
|
||||
: NodeWrapper(element)
|
||||
ElementWrapper::ElementWrapper(JS::GlobalObject& global_object, Element& element)
|
||||
: NodeWrapper(global_object, element)
|
||||
{
|
||||
}
|
||||
|
||||
void ElementWrapper::initialize(JS::Interpreter&, JS::GlobalObject&)
|
||||
{
|
||||
define_native_property("innerHTML", inner_html_getter, inner_html_setter);
|
||||
define_native_property("id", id_getter, id_setter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue