@vue/runtime-dom 3.2.36 → 3.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -357,7 +357,8 @@ function parseName(name) {
357
357
  options[m[0].toLowerCase()] = true;
358
358
  }
359
359
  }
360
- return [shared.hyphenate(name.slice(2)), options];
360
+ const event = name[2] === ':' ? name.slice(3) : shared.hyphenate(name.slice(2));
361
+ return [event, options];
361
362
  }
362
363
  function createInvoker(initialValue, instance) {
363
364
  const invoker = (e) => {
@@ -369,7 +370,7 @@ function createInvoker(initialValue, instance) {
369
370
  // AFTER it was attached.
370
371
  const timeStamp = e.timeStamp || _getNow();
371
372
  if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
372
- runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
373
+ runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* ErrorCodes.NATIVE_EVENT_HANDLER */, [e]);
373
374
  }
374
375
  };
375
376
  invoker.value = initialValue;
@@ -353,7 +353,8 @@ function parseName(name) {
353
353
  options[m[0].toLowerCase()] = true;
354
354
  }
355
355
  }
356
- return [shared.hyphenate(name.slice(2)), options];
356
+ const event = name[2] === ':' ? name.slice(3) : shared.hyphenate(name.slice(2));
357
+ return [event, options];
357
358
  }
358
359
  function createInvoker(initialValue, instance) {
359
360
  const invoker = (e) => {
@@ -365,7 +366,7 @@ function createInvoker(initialValue, instance) {
365
366
  // AFTER it was attached.
366
367
  const timeStamp = e.timeStamp || _getNow();
367
368
  if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
368
- runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
369
+ runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* ErrorCodes.NATIVE_EVENT_HANDLER */, [e]);
369
370
  }
370
371
  };
371
372
  invoker.value = initialValue;