aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-01-07 10:37:45 +0100
committerMs2ger <Ms2ger@gmail.com>2016-01-07 14:51:18 +0100
commitad1035f0a09dcf4cf88debc9f1044c51b3af8bbc (patch)
treecdec2bfb2b7317b0e379df84e66bc5c7a1921e0a /components/script/dom
parentf3aa5b40ed0f7236eec263e546b0c6ec2c64b881 (diff)
downloadservo-ad1035f0a09dcf4cf88debc9f1044c51b3af8bbc.tar.gz
servo-ad1035f0a09dcf4cf88debc9f1044c51b3af8bbc.zip
Remove an unused argument to CustomEvent::init_custom_event.
Diffstat (limited to 'components/script/dom')
-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