diff --git a/lib/elements/dom-module.js b/lib/elements/dom-module.js index 02c41e7203..73d647384b 100644 --- a/lib/elements/dom-module.js +++ b/lib/elements/dom-module.js @@ -70,6 +70,7 @@ function styleOutsideTemplateCheck(inst) { */ export class DomModule extends HTMLElement { + /** @override */ static get observedAttributes() { return ['id']; } /** diff --git a/lib/legacy/legacy-element-mixin.js b/lib/legacy/legacy-element-mixin.js index d3714a2d49..c4aa7a0286 100644 --- a/lib/legacy/legacy-element-mixin.js +++ b/lib/legacy/legacy-element-mixin.js @@ -519,6 +519,7 @@ export const LegacyElementMixin = dedupingMixin((base) => { * @this {Element} * @return {?Node} The element whose local dom within which this element is * contained. + * @override */ get domHost() { let root = wrap(this).getRootNode(); diff --git a/lib/legacy/mutable-data-behavior.js b/lib/legacy/mutable-data-behavior.js index c9f46b3a62..26bdb004f2 100644 --- a/lib/legacy/mutable-data-behavior.js +++ b/lib/legacy/mutable-data-behavior.js @@ -70,6 +70,7 @@ export const MutableDataBehavior = { * @param {*} old Previous property value * @return {boolean} Whether the property should be considered a change * @protected + * @override */ _shouldPropertyChange(property, value, old) { return mutablePropertyChange(this, property, value, old, true); @@ -142,6 +143,7 @@ export const OptionalMutableDataBehavior = { * @param {*} old Previous property value * @return {boolean} Whether the property should be considered a change * @protected + * @override */ _shouldPropertyChange(property, value, old) { return mutablePropertyChange(this, property, value, old, this.mutableData); diff --git a/lib/mixins/element-mixin.js b/lib/mixins/element-mixin.js index 522914b33b..19637fb758 100644 --- a/lib/mixins/element-mixin.js +++ b/lib/mixins/element-mixin.js @@ -370,6 +370,7 @@ export const ElementMixin = dedupingMixin(base => { } } + /** @override */ this.prototype._template = template; } diff --git a/lib/utils/templatize.js b/lib/utils/templatize.js index 9f0321f120..bb9ef53517 100644 --- a/lib/utils/templatize.js +++ b/lib/utils/templatize.js @@ -300,6 +300,7 @@ class TemplateInstanceBase extends templateInstanceBase { * * @param {Event} event Event to dispatch * @return {boolean} Always true. + * @override */ dispatchEvent(event) { // eslint-disable-line no-unused-vars return true;