diff --git a/externs/polymer-dom-api-externs.js b/externs/polymer-dom-api-externs.js index 9b52e3394d..2076d03f89 100644 --- a/externs/polymer-dom-api-externs.js +++ b/externs/polymer-dom-api-externs.js @@ -14,7 +14,7 @@ * * @interface */ -var PolymerDomApi = function() {}; +let PolymerDomApi = function() {}; /** * @param {?Node} node @@ -103,6 +103,9 @@ PolymerDomApi.prototype.getDestinationInsertionPoints = function() {}; /** @return {?Node} */ PolymerDomApi.prototype.getOwnerRoot = function() {}; +/** @type {!Node} */ +PolymerDomApi.prototype.node; + /** * @param {string} attribute * @param {string} value diff --git a/lib/legacy/polymer.dom.js b/lib/legacy/polymer.dom.js index ff4fac8820..22b863e0e7 100644 --- a/lib/legacy/polymer.dom.js +++ b/lib/legacy/polymer.dom.js @@ -45,7 +45,7 @@ export const matchesSelector = function(node, selector) { class DomApiNative { /** - * @param {Node} node Node for which to create a Polymer.dom helper object. + * @param {!Node} node Node for which to create a Polymer.dom helper object. */ constructor(node) { if (window['ShadyDOM'] && window['ShadyDOM']['inUse']) {