Skip to content

Commit 4837e4a

Browse files
authored
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.
1 parent b89596a commit 4837e4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

externs/closure-types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ Polymer_ElementMixin.prototype.importPath;
693693
/** @type {(StampedTemplate|HTMLElement|ShadowRoot)} */
694694
Polymer_ElementMixin.prototype.root;
695695

696-
/** @type {!Object.<string, !Node>} */
696+
/** @type {!Object.<string, !Element>} */
697697
Polymer_ElementMixin.prototype.$;
698698

699699
/**
@@ -1210,4 +1210,4 @@ Polymer_ArraySelectorMixin.prototype.select = function(item){};
12101210
/**
12111211
* @param {number} idx Index from `items` array to select
12121212
*/
1213-
Polymer_ArraySelectorMixin.prototype.selectIndex = function(idx){};
1213+
Polymer_ArraySelectorMixin.prototype.selectIndex = function(idx){};

0 commit comments

Comments
 (0)