From 4837e4a825b906c9396d46b6dbc9acbcb65b5e6e Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Thu, 2 Nov 2017 14:21:06 -0700 Subject: [PATCH] instance.$.foo should only give Elements You need to be at least an `Element` to have an id attribute, and you need to have an id attribute to be in the `$` map. --- externs/closure-types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/closure-types.js b/externs/closure-types.js index fcb29ec3f4..249c0a6ba9 100644 --- a/externs/closure-types.js +++ b/externs/closure-types.js @@ -693,7 +693,7 @@ Polymer_ElementMixin.prototype.importPath; /** @type {(StampedTemplate|HTMLElement|ShadowRoot)} */ Polymer_ElementMixin.prototype.root; -/** @type {!Object.} */ +/** @type {!Object.} */ Polymer_ElementMixin.prototype.$; /** @@ -1210,4 +1210,4 @@ Polymer_ArraySelectorMixin.prototype.select = function(item){}; /** * @param {number} idx Index from `items` array to select */ -Polymer_ArraySelectorMixin.prototype.selectIndex = function(idx){}; \ No newline at end of file +Polymer_ArraySelectorMixin.prototype.selectIndex = function(idx){};