mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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)
|
||||
-> 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue