From bce3b172e7fb0c452adae16f9483dcdc9cc8c0b2 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 19 Dec 2014 11:34:11 +0100 Subject: Make the argument to dispatch_event_with_target non-optional. The name of the method makes it clear it's supposed to be used with a target override, so we might as well enforce that. --- components/script/script_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index c5c924349cc..2f2bb5f0bc2 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -859,7 +859,7 @@ impl ScriptTask { EventBubbles::DoesNotBubble, EventCancelable::NotCancelable).root(); let wintarget: JSRef = EventTargetCast::from_ref(*window); - let _ = wintarget.dispatch_event_with_target(Some(doctarget), *event); + let _ = wintarget.dispatch_event_with_target(doctarget, *event); *page.fragment_name.borrow_mut() = final_url.fragment.clone(); -- cgit v1.2.3