From 001b5a90334248c5af8518d6edb4858dd85f44e8 Mon Sep 17 00:00:00 2001 From: Julie Ralph Date: Mon, 11 Apr 2016 17:20:50 -0700 Subject: [PATCH] chore: add note about what define-property is for. --- lib/browser/define-property.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/browser/define-property.ts b/lib/browser/define-property.ts index d9ca5e5eb..75f29296f 100644 --- a/lib/browser/define-property.ts +++ b/lib/browser/define-property.ts @@ -1,7 +1,8 @@ import {zoneSymbol} from "../common/utils"; -// TODO(julie): does this belong in common? -// might need similar for object.freeze -// i regret nothing +/* + * This is necessary for Chrome and Chrome mobile, to enable + * things like redefining `createdCallback` on an element. + */ const _defineProperty = Object.defineProperty; const _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;