set the right flags and attrs for InitEvent

This commit is contained in:
Harry Maclean 2014-04-20 19:23:55 +01:00
parent bb8a037cb2
commit 7dbf69c223

View file

@ -133,11 +133,18 @@ impl Event {
type_: DOMString,
bubbles: bool,
cancelable: bool) {
self.type_ = type_;
self.cancelable = cancelable;
self.bubbles = bubbles;
self.initialized = true;
if self.dispatching {
return;
}
self.stop_propagation = false;
self.stop_immediate = false;
self.canceled = false;
self.trusted = false;
self.target = None;
self.type_ = type_;
self.bubbles = bubbles;
self.cancelable = cancelable;
}
pub fn IsTrusted(&self) -> bool {