Remove type_id arguments from Event::new and UIEvent::new.

This commit is contained in:
Ms2ger 2013-11-13 17:08:57 +01:00
parent 7f13566d57
commit d4a48995a2
4 changed files with 12 additions and 12 deletions

View file

@ -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)
}