diff --git a/lib/legacy/class.js b/lib/legacy/class.js index dd178dcde0..c64aec55bf 100644 --- a/lib/legacy/class.js +++ b/lib/legacy/class.js @@ -534,10 +534,10 @@ export const Class = function(info, mixin) { let klass = mixin ? mixin(LegacyElementMixin(HTMLElement)) : LegacyElementMixin(HTMLElement); klass = GenerateClassFromInfo(info, klass, info.behaviors); + // decorate klass with registration info + klass.is = klass.prototype.is = info.is; if (legacyOptimizations) { klass = DisableUpgradeMixin(klass); } - // decorate klass with registration info - klass.is = klass.prototype.is = info.is; return klass; }; diff --git a/lib/mixins/element-mixin.js b/lib/mixins/element-mixin.js index bae008e744..43902b02e3 100644 --- a/lib/mixins/element-mixin.js +++ b/lib/mixins/element-mixin.js @@ -411,9 +411,13 @@ export const ElementMixin = dedupingMixin(base => { /** * Returns the template that will be stamped into this element's shadow root. * - * If a `static get is()` getter is defined, the default implementation - * will return the first `