mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use Cell/RefCell for interior mutability of Event.
This commit is contained in:
parent
92da2f16fc
commit
f78e561746
2 changed files with 9 additions and 8 deletions
|
@ -140,7 +140,7 @@ pub fn dispatch_event<'a, 'b>(target: &JSRef<'a, EventTarget>,
|
|||
|
||||
event.dispatching = false;
|
||||
event.phase = PhaseNone;
|
||||
event.current_target = None;
|
||||
event.current_target.set(None);
|
||||
|
||||
!event.DefaultPrevented()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue