mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove type_id arguments from Event::new and UIEvent::new.
This commit is contained in:
parent
7f13566d57
commit
d4a48995a2
4 changed files with 12 additions and 12 deletions
|
@ -171,9 +171,9 @@ impl Event {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: @mut Window, type_id: EventTypeId) -> AbstractEvent {
|
||||
let ev = reflect_dom_object(@mut Event::new_inherited(type_id), window,
|
||||
EventBinding::Wrap);
|
||||
pub fn new(window: @mut Window) -> AbstractEvent {
|
||||
let ev = reflect_dom_object(@mut Event::new_inherited(HTMLEventTypeId),
|
||||
window, EventBinding::Wrap);
|
||||
Event::as_abstract(ev)
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ impl Event {
|
|||
pub fn Constructor(global: @mut Window,
|
||||
type_: DOMString,
|
||||
init: &EventBinding::EventInit) -> Fallible<AbstractEvent> {
|
||||
let ev = Event::new(global, HTMLEventTypeId);
|
||||
let ev = Event::new(global);
|
||||
ev.mut_event().InitEvent(type_, init.bubbles, init.cancelable);
|
||||
Ok(ev)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue