Skip to content

Commit

Permalink
instance.$.foo should only give Elements
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rictic authored Nov 2, 2017
1 parent b89596a commit 4837e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions externs/closure-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ Polymer_ElementMixin.prototype.importPath;
/** @type {(StampedTemplate|HTMLElement|ShadowRoot)} */
Polymer_ElementMixin.prototype.root;

/** @type {!Object.<string, !Node>} */
/** @type {!Object.<string, !Element>} */
Polymer_ElementMixin.prototype.$;

/**
Expand Down Expand Up @@ -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){};
Polymer_ArraySelectorMixin.prototype.selectIndex = function(idx){};

0 comments on commit 4837e4a

Please sign in to comment.