Skip to content

Commit 15747c8

Browse files
committed
Add node field to PolymerDomApi
And keep DomApiNative type compatible with PolymerDomApi. Upstreaming cl/275091781
1 parent 4274bce commit 15747c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

externs/polymer-dom-api-externs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @interface
1616
*/
17-
var PolymerDomApi = function() {};
17+
let PolymerDomApi = function() {};
1818

1919
/**
2020
* @param {?Node} node
@@ -103,6 +103,9 @@ PolymerDomApi.prototype.getDestinationInsertionPoints = function() {};
103103
/** @return {?Node} */
104104
PolymerDomApi.prototype.getOwnerRoot = function() {};
105105

106+
/** @type {!Node} */
107+
PolymerDomApi.prototype.node;
108+
106109
/**
107110
* @param {string} attribute
108111
* @param {string} value

lib/legacy/polymer.dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const matchesSelector = function(node, selector) {
4545
class DomApiNative {
4646

4747
/**
48-
* @param {Node} node Node for which to create a Polymer.dom helper object.
48+
* @param {!Node} node Node for which to create a Polymer.dom helper object.
4949
*/
5050
constructor(node) {
5151
if (window['ShadyDOM'] && window['ShadyDOM']['inUse']) {

0 commit comments

Comments
 (0)