From 18adf5fb88a1a00c6761017a4db9fc87392b00e2 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 2 Jul 2019 17:05:41 -0700 Subject: [PATCH] Avoid lint warnings. --- lib/elements/dom-if.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/elements/dom-if.js b/lib/elements/dom-if.js index fdf567cdcc..8dccbc2c33 100644 --- a/lib/elements/dom-if.js +++ b/lib/elements/dom-if.js @@ -268,6 +268,9 @@ class DomIfBase extends PolymerElement { } } + // Ideally these would be annotated as abstract methods in an abstract class, + // but closure compiler is finnicky + /* eslint-disable valid-jsdoc */ /** * Abstract API to be implemented by subclass: Returns true if a template * instance has been created and inserted. @@ -295,7 +298,7 @@ class DomIfBase extends PolymerElement { * @param {Node} parentNode The parent node to insert the instance into * @return {void} */ - __createAndInsertInstance(parentNode) { } + __createAndInsertInstance(parentNode) { } // eslint-disable-line no-unused-vars /** * Abstract API to be implemented by subclass: Removes nodes created by an @@ -315,6 +318,7 @@ class DomIfBase extends PolymerElement { * @return {void} */ _showHideChildren() { } + /* eslint-enable valid-jsdoc */ } /**