aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/customevent.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs
index e30a50e53b8..f56e76ab7ff 100644
--- a/components/script/dom/customevent.rs
+++ b/components/script/dom/customevent.rs
@@ -44,7 +44,7 @@ impl CustomEvent {
detail: HandleValue)
-> Root<CustomEvent> {
let ev = CustomEvent::new_uninitialized(global);
- ev.init_custom_event(global.get_cx(), type_, bubbles, cancelable, detail);
+ ev.init_custom_event(type_, bubbles, cancelable, detail);
ev
}
#[allow(unsafe_code)]
@@ -60,7 +60,6 @@ impl CustomEvent {
}
fn init_custom_event(&self,
- _cx: *mut JSContext,
type_: Atom,
can_bubble: bool,
cancelable: bool,
@@ -88,7 +87,7 @@ impl CustomEventMethods for CustomEvent {
can_bubble: bool,
cancelable: bool,
detail: HandleValue) {
- self.init_custom_event(_cx, Atom::from(&*type_), can_bubble, cancelable, detail)
+ self.init_custom_event(Atom::from(&*type_), can_bubble, cancelable, detail)
}
// https://dom.spec.whatwg.org/#dom-event-istrusted