mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Remove an unused argument to CustomEvent::init_custom_event.
This commit is contained in:
parent
f3aa5b40ed
commit
ad1035f0a0
1 changed files with 2 additions and 3 deletions
|
@ -44,7 +44,7 @@ impl CustomEvent {
|
||||||
detail: HandleValue)
|
detail: HandleValue)
|
||||||
-> Root<CustomEvent> {
|
-> Root<CustomEvent> {
|
||||||
let ev = CustomEvent::new_uninitialized(global);
|
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
|
ev
|
||||||
}
|
}
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
@ -60,7 +60,6 @@ impl CustomEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn init_custom_event(&self,
|
fn init_custom_event(&self,
|
||||||
_cx: *mut JSContext,
|
|
||||||
type_: Atom,
|
type_: Atom,
|
||||||
can_bubble: bool,
|
can_bubble: bool,
|
||||||
cancelable: bool,
|
cancelable: bool,
|
||||||
|
@ -88,7 +87,7 @@ impl CustomEventMethods for CustomEvent {
|
||||||
can_bubble: bool,
|
can_bubble: bool,
|
||||||
cancelable: bool,
|
cancelable: bool,
|
||||||
detail: HandleValue) {
|
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
|
// https://dom.spec.whatwg.org/#dom-event-istrusted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue