File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ export const LegacyElementMixin = dedupingMixin((base) => {
168
168
169
169
// NOTE: Inlined for perf from version of DisableUpgradeMixin.
170
170
static get observedAttributes ( ) {
171
- if ( legacyNoObservedAttributes && ! this . _legacyForceObservedAttributes ) {
172
- this . prototype . _legacyForceObservedAttributes = this . _legacyForceObservedAttributes ;
171
+ if ( legacyNoObservedAttributes && ! this . prototype . _legacyForceObservedAttributes ) {
173
172
// Ensure this element is property registered with the telemetry system.
174
173
if ( ! this . hasOwnProperty ( JSCompiler_renameProperty ( '__observedAttributes' , this ) ) ) {
175
174
this . __observedAttributes = [ ] ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const Polymer = function(info) {
41
41
}
42
42
// Copy opt out for `legacyNoObservedAttributes` from info object to class.
43
43
if ( info . _legacyForceObservedAttributes ) {
44
- klass . _legacyForceObservedAttributes = info . _legacyForceObservedAttributes ;
44
+ klass . prototype . _legacyForceObservedAttributes = info . _legacyForceObservedAttributes ;
45
45
}
46
46
customElements . define ( klass . is , /** @type {!HTMLElement } */ ( klass ) ) ;
47
47
return klass ;
You can’t perform that action at this time.
0 commit comments