Pārlūkot izejas kodu

chore: update comment

Evan You 7 gadi atpakaļ
vecāks
revīzija
60a277ca31
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/platforms/web/runtime/modules/events.js

+ 2 - 2
src/platforms/web/runtime/modules/events.js

@@ -46,8 +46,8 @@ function add (
   passive: boolean
 ) {
   // async edge case #6566: inner click event triggers patch, event handler
-  // attached to outer element during patch, and triggered again. This only
-  // happens in Chrome as it fires microtask ticks between event propagation.
+  // attached to outer element during patch, and triggered again. This
+  // happens because browsers fire microtask ticks between event propagation.
   // the solution is simple: we save the timestamp when a handler is attached,
   // and the handler would only fire if the event passed to it was fired
   // AFTER it was attached.