Skip to content

Commit

Permalink
set the right flags and attrs for InitEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
hmac committed Apr 20, 2014
1 parent bb8a037 commit 7dbf69c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/script/dom/event.rs
Expand Up @@ -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 {
Expand Down

5 comments on commit 7dbf69c

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging hazz/servo/initevent = 7dbf69c into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hazz/servo/initevent = 7dbf69c merged ok, testing candidate = 73a0658

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 73a0658

Please sign in to comment.