@vue/runtime-dom
Advanced tools
+16
-12
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.12 | ||
| * @vue/runtime-dom v3.6.0-beta.13 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -525,3 +525,17 @@ * @license MIT | ||
| else if (e._vts <= invoker.attached) return; | ||
| (0, _vue_runtime_core.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]); | ||
| const value = invoker.value; | ||
| if ((0, _vue_shared.isArray)(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| const handlers = value.slice(); | ||
| const args = [e]; | ||
| for (let i = 0; i < handlers.length; i++) { | ||
| if (e._stopped) break; | ||
| const handler = handlers[i]; | ||
| if (handler) (0, _vue_runtime_core.callWithAsyncErrorHandling)(handler, instance, 5, args); | ||
| } | ||
| } else (0, _vue_runtime_core.callWithAsyncErrorHandling)(value, instance, 5, [e]); | ||
| }; | ||
@@ -537,12 +551,2 @@ invoker.value = initialValue; | ||
| } | ||
| function patchStopImmediatePropagation(e, value) { | ||
| if ((0, _vue_shared.isArray)(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| return value.map((fn) => (e) => !e._stopped && fn && fn(e)); | ||
| } else return value; | ||
| } | ||
| //#endregion | ||
@@ -549,0 +553,0 @@ //#region packages/runtime-dom/src/patchProp.ts |
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.12 | ||
| * @vue/runtime-dom v3.6.0-beta.13 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -517,3 +517,17 @@ * @license MIT | ||
| else if (e._vts <= invoker.attached) return; | ||
| (0, _vue_runtime_core.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]); | ||
| const value = invoker.value; | ||
| if ((0, _vue_shared.isArray)(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| const handlers = value.slice(); | ||
| const args = [e]; | ||
| for (let i = 0; i < handlers.length; i++) { | ||
| if (e._stopped) break; | ||
| const handler = handlers[i]; | ||
| if (handler) (0, _vue_runtime_core.callWithAsyncErrorHandling)(handler, instance, 5, args); | ||
| } | ||
| } else (0, _vue_runtime_core.callWithAsyncErrorHandling)(value, instance, 5, [e]); | ||
| }; | ||
@@ -524,12 +538,2 @@ invoker.value = initialValue; | ||
| } | ||
| function patchStopImmediatePropagation(e, value) { | ||
| if ((0, _vue_shared.isArray)(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| return value.map((fn) => (e) => !e._stopped && fn && fn(e)); | ||
| } else return value; | ||
| } | ||
| //#endregion | ||
@@ -536,0 +540,0 @@ //#region packages/runtime-dom/src/patchProp.ts |
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.12 | ||
| * @vue/runtime-dom v3.6.0-beta.13 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -601,3 +601,17 @@ * @license MIT | ||
| else if (e._vts <= invoker.attached) return; | ||
| callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5, [e]); | ||
| const value = invoker.value; | ||
| if (isArray(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| const handlers = value.slice(); | ||
| const args = [e]; | ||
| for (let i = 0; i < handlers.length; i++) { | ||
| if (e._stopped) break; | ||
| const handler = handlers[i]; | ||
| if (handler) callWithAsyncErrorHandling(handler, instance, 5, args); | ||
| } | ||
| } else callWithAsyncErrorHandling(value, instance, 5, [e]); | ||
| }; | ||
@@ -613,12 +627,2 @@ invoker.value = initialValue; | ||
| } | ||
| function patchStopImmediatePropagation(e, value) { | ||
| if (isArray(value)) { | ||
| const originalStop = e.stopImmediatePropagation; | ||
| e.stopImmediatePropagation = () => { | ||
| originalStop.call(e); | ||
| e._stopped = true; | ||
| }; | ||
| return value.map((fn) => (e) => !e._stopped && fn && fn(e)); | ||
| } else return value; | ||
| } | ||
| //#endregion | ||
@@ -625,0 +629,0 @@ //#region packages/runtime-dom/src/patchProp.ts |
+4
-4
| { | ||
| "name": "@vue/runtime-dom", | ||
| "version": "3.6.0-beta.12", | ||
| "version": "3.6.0-beta.13", | ||
| "description": "@vue/runtime-dom", | ||
@@ -53,5 +53,5 @@ "main": "index.js", | ||
| "csstype": "^3.2.3", | ||
| "@vue/runtime-core": "3.6.0-beta.12", | ||
| "@vue/reactivity": "3.6.0-beta.12", | ||
| "@vue/shared": "3.6.0-beta.12" | ||
| "@vue/shared": "3.6.0-beta.13", | ||
| "@vue/runtime-core": "3.6.0-beta.13", | ||
| "@vue/reactivity": "3.6.0-beta.13" | ||
| }, | ||
@@ -58,0 +58,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1197312
0.08%26761
0.06%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated