Make FocusEvent::new_uninitialized take a &Window

This commit is contained in:
Anthony Ramine 2017-01-21 01:26:19 +01:00
parent 707f8f881e
commit ee1ff1d385
3 changed files with 6 additions and 6 deletions

View file

@ -2612,7 +2612,7 @@ impl DocumentMethods for Document {
"events" | "event" | "htmlevents" | "svgevents" =>
Ok(Event::new_uninitialized(&self.window.upcast())),
"focusevent" =>
Ok(Root::upcast(FocusEvent::new_uninitialized(self.window.upcast()))),
Ok(Root::upcast(FocusEvent::new_uninitialized(&self.window))),
"hashchangeevent" =>
Ok(Root::upcast(HashChangeEvent::new_uninitialized(&self.window.upcast()))),
"keyboardevent" =>