Skip to content

Commit

Permalink
Add comment about why code is duplicated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jul 17, 2019
1 parent 658c885 commit f494389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/legacy/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function GenerateClassFromInfo(info, Base, behaviors) {
/** @private */
class PolymerGenerated extends Base {

// NOTE, this copies most of the code from DisableUpgradeMixin. This is
// unfortunate, but testing revealed a small penalty to applying the mixin
// on top of every generated class, so we do it directly here.
static get observedAttributes() {
return observedAttributesGetter.call(this).concat(DISABLED_ATTR);
}
Expand Down

0 comments on commit f494389

Please sign in to comment.