auto merge of #2196 : hazz/servo/initevent, r=Ms2ger

Should fix #2189

This is my first PR for servo (and first time using Rust), so apologies if anything is horribly wrong.
This commit is contained in:
bors-servo 2014-04-21 16:22:25 -04:00
commit 73a0658b8a

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 {