mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Move the call to RegisterBindings::Register into WindowBinding::Wrap.
This commit is contained in:
parent
5baff0cc2c
commit
ac5a2767bf
2 changed files with 4 additions and 6 deletions
|
@ -1821,8 +1821,11 @@ Temporary::new(raw)""" % CreateBindingJSObject(self.descriptor, "scope"))
|
|||
with_compartment(aCx, obj, || {
|
||||
let proto = GetProtoObject(aCx, obj, obj);
|
||||
JS_SetPrototype(aCx, obj, proto);
|
||||
|
||||
raw.reflector().set_jsobject(obj);
|
||||
|
||||
RegisterBindings::Register(aCx, obj);
|
||||
});
|
||||
raw.reflector().set_jsobject(obj);
|
||||
|
||||
Temporary::new(raw)""" % CreateBindingJSObject(self.descriptor))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue