diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-12-19 11:34:11 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-12-19 11:34:11 +0100 |
commit | bce3b172e7fb0c452adae16f9483dcdc9cc8c0b2 (patch) | |
tree | 1071c8e79ab0ca5c279ee754c5d0167fb5433b0f /components/script/script_task.rs | |
parent | 7317518c173ef61384e29c1bdfa7052acaf27f8d (diff) | |
download | servo-bce3b172e7fb0c452adae16f9483dcdc9cc8c0b2.tar.gz servo-bce3b172e7fb0c452adae16f9483dcdc9cc8c0b2.zip |
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.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<EventTarget> = 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(); |