mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
commit
73a0658b8a
1 changed files with 10 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue