'closeevent' argument for Document::createEvent

fix alphabetical order

delete unused tests
This commit is contained in:
mrmiywj 2016-05-06 19:16:10 +08:00
parent 0558687d71
commit dfaad2dab2
4 changed files with 10 additions and 30 deletions

View file

@ -33,6 +33,12 @@ impl CloseEvent {
}
}
pub fn new_uninitialized(global: GlobalRef) -> Root<CloseEvent> {
reflect_dom_object(box CloseEvent::new_inherited(false, 0, DOMString::new()),
global,
CloseEventBinding::Wrap)
}
pub fn new(global: GlobalRef,
type_: Atom,
bubbles: EventBubbles,
@ -66,6 +72,7 @@ impl CloseEvent {
init.code,
init.reason.clone()))
}
}
impl CloseEventMethods for CloseEvent {