]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(runtime-vapor): mark delegatedEvents initialization as pure
authordaiwei <daiwei521@126.com>
Thu, 25 Dec 2025 09:35:42 +0000 (17:35 +0800)
committeredison <daiwei521@126.com>
Fri, 26 Dec 2025 05:37:59 +0000 (13:37 +0800)
packages/runtime-vapor/src/dom/event.ts

index d5ba251b8c9ea64b391a121190985732b82e7b3c..33d06bde97cf5daa1090d248c05eb2dc92f1276b 100644 (file)
@@ -56,7 +56,7 @@ type DelegatedHandler = {
 /**
  * Event delegation borrowed from solid
  */
-const delegatedEvents = Object.create(null)
+const delegatedEvents = /*@__PURE__*/ Object.create(null)
 
 export const delegateEvents = (...names: string[]): void => {
   for (const name of names) {