Copy flag to a single location rather than two.

This commit is contained in:
Steven Orvell committed 2020-01-29 18:15:28 -08:00
1 parent 3fd967190e
commit 688243b32d
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -168,8 +168,7 @@ export const LegacyElementMixin = dedupingMixin((base) => {
// NOTE: Inlined for perf from version of DisableUpgradeMixin.
static get observedAttributes() {
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {
this.prototype._legacyForceObservedAttributes = this._legacyForceObservedAttributes;
if (legacyNoObservedAttributes && !this.prototype._legacyForceObservedAttributes) {
// Ensure this element is property registered with the telemetry system.
if (!this.hasOwnProperty(JSCompiler_renameProperty('__observedAttributes', this))) {
this.__observedAttributes = [];
+1 -1
View File
@@ -41,7 +41,7 @@ const Polymer = function(info) {
}
// Copy opt out for `legacyNoObservedAttributes` from info object to class.
if (info._legacyForceObservedAttributes) {
klass._legacyForceObservedAttributes = info._legacyForceObservedAttributes;
klass.prototype._legacyForceObservedAttributes = info._legacyForceObservedAttributes;
}
customElements.define(klass.is, /** @type {!HTMLElement} */(klass));
return klass;