From 0a9f6fb29ff10041642bfd42bd59ca1e7073bdc4 Mon Sep 17 00:00:00 2001 From: c0dedance <38075730+c0dedance@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:11:02 +0800 Subject: [PATCH 1/2] style: remove WTF, also keep it classy --- src/core/instance/lifecycle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/instance/lifecycle.ts b/src/core/instance/lifecycle.ts index 94f42e27eb5..6f16d8c67d7 100644 --- a/src/core/instance/lifecycle.ts +++ b/src/core/instance/lifecycle.ts @@ -330,7 +330,7 @@ export function updateChildComponent( const propKeys = vm.$options._propKeys || [] for (let i = 0; i < propKeys.length; i++) { const key = propKeys[i] - const propOptions: any = vm.$options.props // wtf flow? + const propOptions: any = vm.$options.props // flow? props[key] = validateProp(key, propOptions, propsData, vm) } toggleObserving(true) From a3d83dba80a72d628c64b6965ddbcf44c77130bf Mon Sep 17 00:00:00 2001 From: c0dedance <38075730+c0dedance@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:16:30 +0800 Subject: [PATCH 2/2] style: remove useless comment --- src/core/instance/lifecycle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/instance/lifecycle.ts b/src/core/instance/lifecycle.ts index 6f16d8c67d7..96c2eb66875 100644 --- a/src/core/instance/lifecycle.ts +++ b/src/core/instance/lifecycle.ts @@ -330,7 +330,7 @@ export function updateChildComponent( const propKeys = vm.$options._propKeys || [] for (let i = 0; i < propKeys.length; i++) { const key = propKeys[i] - const propOptions: any = vm.$options.props // flow? + const propOptions: any = vm.$options.props props[key] = validateProp(key, propOptions, propsData, vm) } toggleObserving(true)