mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Short-circuit initFooEvent while dispatching events.
This commit is contained in:
parent
642a3592c7
commit
c23edf6f5a
5 changed files with 23 additions and 4 deletions
|
@ -219,10 +219,11 @@ impl<'a> EventMethods for JSRef<'a, Event> {
|
|||
type_: DOMString,
|
||||
bubbles: bool,
|
||||
cancelable: bool) {
|
||||
self.initialized.set(true);
|
||||
if self.dispatching.get() {
|
||||
return;
|
||||
}
|
||||
|
||||
self.initialized.set(true);
|
||||
self.stop_propagation.set(false);
|
||||
self.stop_immediate.set(false);
|
||||
self.canceled.set(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue