소스 검색

chore: comments

Evan You 6 년 전
부모
커밋
13f5067656
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/runtime-dom/src/modules/props.ts

+ 3 - 0
packages/runtime-dom/src/modules/props.ts

@@ -2,6 +2,9 @@ export function patchDOMProp(
   el: any,
   el: any,
   key: string,
   key: string,
   value: any,
   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,
   prevChildren: any,
   parentComponent: any,
   parentComponent: any,
   unmountChildren: any
   unmountChildren: any