diff options
Diffstat (limited to 'components/script/dom/focusevent.rs')
-rw-r--r-- | components/script/dom/focusevent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/focusevent.rs b/components/script/dom/focusevent.rs index d06b725286d..1eb3983737d 100644 --- a/components/script/dom/focusevent.rs +++ b/components/script/dom/focusevent.rs @@ -53,12 +53,12 @@ impl FocusEvent { ev } - pub fn Constructor(global: &GlobalScope, + pub fn Constructor(window: &Window, type_: DOMString, init: &FocusEventBinding::FocusEventInit) -> Fallible<Root<FocusEvent>> { let bubbles = EventBubbles::from(init.parent.parent.bubbles); let cancelable = EventCancelable::from(init.parent.parent.cancelable); - let event = FocusEvent::new(global.as_window(), + let event = FocusEvent::new(window, type_, bubbles, cancelable, |