aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/eventtarget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/eventtarget.rs')
-rw-r--r--components/script/dom/eventtarget.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/eventtarget.rs b/components/script/dom/eventtarget.rs
index ae264060107..dc64b0dd4ad 100644
--- a/components/script/dom/eventtarget.rs
+++ b/components/script/dom/eventtarget.rs
@@ -332,15 +332,15 @@ impl EventTarget {
/// Implements https://html.spec.whatwg.org/multipage/#fire-a-simple-event
pub fn fire_simple_event(&self, name: &str, win: GlobalRef) -> Root<Event> {
- self.fire_simple_event_params(name, EventBubbles::DoesNotBubble,
- EventCancelable::NotCancelable, win)
+ self.fire_event(name, EventBubbles::DoesNotBubble,
+ EventCancelable::NotCancelable, win)
}
/// Implements more customizable variant of EventTarget::fire_simple_event.
- pub fn fire_simple_event_params(&self, name: &str,
- bubbles: EventBubbles,
- cancelable: EventCancelable,
- win: GlobalRef) -> Root<Event> {
+ pub fn fire_event(&self, name: &str,
+ bubbles: EventBubbles,
+ cancelable: EventCancelable,
+ win: GlobalRef) -> Root<Event> {
let event = Event::new(win, Atom::from(name), bubbles, cancelable);
event.fire(self);