Skip to content

Commit

Permalink
Fix typo and improve readbility
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jul 16, 2019
1 parent f278434 commit 933995a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/legacy/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 933995a

Please sign in to comment.