Skip to content

Commit 688243b

Browse files
author
Steven Orvell
committed
Copy flag to a single location rather than two.
1 parent 3fd9671 commit 688243b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/legacy/legacy-element-mixin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ export const LegacyElementMixin = dedupingMixin((base) => {
168168

169169
// NOTE: Inlined for perf from version of DisableUpgradeMixin.
170170
static get observedAttributes() {
171-
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {
172-
this.prototype._legacyForceObservedAttributes = this._legacyForceObservedAttributes;
171+
if (legacyNoObservedAttributes && !this.prototype._legacyForceObservedAttributes) {
173172
// Ensure this element is property registered with the telemetry system.
174173
if (!this.hasOwnProperty(JSCompiler_renameProperty('__observedAttributes', this))) {
175174
this.__observedAttributes = [];

lib/legacy/polymer-fn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Polymer = function(info) {
4141
}
4242
// Copy opt out for `legacyNoObservedAttributes` from info object to class.
4343
if (info._legacyForceObservedAttributes) {
44-
klass._legacyForceObservedAttributes = info._legacyForceObservedAttributes;
44+
klass.prototype._legacyForceObservedAttributes = info._legacyForceObservedAttributes;
4545
}
4646
customElements.define(klass.is, /** @type {!HTMLElement} */(klass));
4747
return klass;

0 commit comments

Comments
 (0)