File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ PolymerInit.prototype.extends;
41
41
PolymerInit . prototype . properties ;
42
42
/** @type {(!Array<string> | undefined) } */
43
43
PolymerInit . prototype . observers ;
44
- /** @type {(!HTMLTemplateElement | string | undefined) } */
44
+ /** @type {(!HTMLTemplateElement | string | undefined | null ) } */
45
45
PolymerInit . prototype . template ;
46
46
/** @type {(!Object<string, *> | undefined) } */
47
47
PolymerInit . prototype . hostAttributes ;
@@ -60,7 +60,7 @@ PolymerElementConstructor.extends;
60
60
PolymerElementConstructor . properties ;
61
61
/** @type {(!Array<string> | undefined) } */
62
62
PolymerElementConstructor . observers ;
63
- /** @type {(!HTMLTemplateElement | string | undefined) } */
63
+ /** @type {(!HTMLTemplateElement | string | undefined | null ) } */
64
64
PolymerElementConstructor . template ;
65
65
66
66
/** @interface */
@@ -150,7 +150,7 @@ var PolymerElement = function() {};
150
150
PolymerElement . is ;
151
151
/**
152
152
* The template to stamp when creating this element type.
153
- * @type {!HTMLTemplateElement|undefined }
153
+ * @type {!HTMLTemplateElement|undefined|null }
154
154
*/
155
155
PolymerElement . template ;
156
156
/**
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export class DomBind extends domBindBase {
115
115
render ( ) {
116
116
let template ;
117
117
if ( ! this . __children ) {
118
- template = /** @type {HTMLTemplateElement } */ ( template || this . querySelector ( 'template' ) ) ;
118
+ template = /** @type {? HTMLTemplateElement } */ ( template || this . querySelector ( 'template' ) ) ;
119
119
if ( ! template ) {
120
120
// Wait until childList changes and template should be there by then
121
121
let observer = new MutationObserver ( ( ) => {
You can’t perform that action at this time.
0 commit comments