From 13f506765696446df2093bd703d68dd700ca8a54 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 21 Aug 2019 16:17:02 -0400 Subject: [PATCH] chore: comments --- packages/runtime-dom/src/modules/props.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/runtime-dom/src/modules/props.ts b/packages/runtime-dom/src/modules/props.ts index dc3ad2fac..8dd9c4376 100644 --- a/packages/runtime-dom/src/modules/props.ts +++ b/packages/runtime-dom/src/modules/props.ts @@ -2,6 +2,9 @@ export function patchDOMProp( el: any, key: string, value: any, + // the next 3 args are passed only due to potential innerHTML/textContent + // overriding existing VNodes, in which case the old tree must be properly + // unmounted. prevChildren: any, parentComponent: any, unmountChildren: any