minor tweaks

pull/16527/head
ComputerGuy 1 month ago
parent 6a1d0ead40
commit 4edbbfc28a

@ -2,4 +2,4 @@
'svelte': patch 'svelte': patch
--- ---
Fix double event processing in firefox due to event object being garbage collected (#16522) fix: double event processing in firefox due to event object being garbage collected

@ -143,7 +143,7 @@ export function delegate(events) {
// used to store the reference to the currently propagated event // used to store the reference to the currently propagated event
// to prevent garbage collection between microtasks in Firefox // to prevent garbage collection between microtasks in Firefox
// If the event object is GCed to early, the expando __root property // If the event object is GCed too early, the expando __root property
// set on the event object is lost, causing the event delegation // set on the event object is lost, causing the event delegation
// to process the event twice // to process the event twice
let last_propagated_event = null; let last_propagated_event = null;

Loading…
Cancel
Save