From 933995a006fd9265cd0f74bc0f512d0b9118ed42 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Tue, 16 Jul 2019 16:27:28 -0700 Subject: [PATCH] Fix typo and improve readbility --- lib/legacy/class.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/legacy/class.js b/lib/legacy/class.js index c6d70e536f..66288c4765 100644 --- a/lib/legacy/class.js +++ b/lib/legacy/class.js @@ -242,10 +242,10 @@ function GenerateClassFromInfo(info, Base, behaviors) { /** @override */ _initializeProperties() { // Enable disable-upgrade use when `legacyOptimizations` setting is on. - if (legacyOptimizations && !this.hasAttribute(DISABLED_ATTR)) { - super._initializeProperties(); - } else { + if (legacyOptimizations && this.hasAttribute(DISABLED_ATTR)) { this.__isUpgradeDisabled = true; + } else { + super._initializeProperties(); } }