From c3651cec0b5fc0ae96229d648c6883e88e413d62 Mon Sep 17 00:00:00 2001 From: AleksanderBodurri Date: Sun, 31 May 2020 23:08:32 -0400 Subject: [PATCH] docs(core): fix typo in decorators.ts relating to the use of Object.defineProperty. (#37369) Previously there was a typo in a comment within the PropDecorator function relating to and justifying the use of Object.defineProperty. This PR clears up the wording that comment PR Close #37369 --- packages/core/src/util/decorators.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/util/decorators.ts b/packages/core/src/util/decorators.ts index 2544090bcc..92d4d0e04c 100644 --- a/packages/core/src/util/decorators.ts +++ b/packages/core/src/util/decorators.ts @@ -153,8 +153,8 @@ export function makePropDecorator( function PropDecorator(target: any, name: string) { const constructor = target.constructor; - // Use of Object.defineProperty is important since it creates non-enumerable property which - // prevents the property is copied during subclassing. + // Use of Object.defineProperty is important because it creates a non-enumerable property + // which prevents the property from being copied during subclassing. const meta = constructor.hasOwnProperty(PROP_METADATA) ? (constructor as any)[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {value: {}})[PROP_METADATA];