]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: comments
authorEvan You <yyx990803@gmail.com>
Wed, 21 Aug 2019 20:17:02 +0000 (16:17 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 21 Aug 2019 20:17:02 +0000 (16:17 -0400)
packages/runtime-dom/src/modules/props.ts

index dc3ad2fac57be0ae33211535909212628a763101..8dd9c437677a125743bd1901fc0cb536a4e6a0f0 100644 (file)
@@ -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