Skip to content

Commit ec3e948

Browse files
committed
Fix template.assetpath with typedef
1 parent 0744364 commit ec3e948

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/style-gather.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
return Polymer.DomModule.import(moduleId);
2323
}
2424

25+
/** @typedef {{assetpath: string}} */
26+
let templateWithAssetPath; // eslint-disable-line no-unused-vars
27+
2528
/**
2629
* Module with utilities for collection CSS text from `<templates>`, external
2730
* stylesheets, and `dom-module`s.
@@ -70,7 +73,7 @@
7073
// include css from the first template in the module
7174
let t = m.querySelector('template');
7275
if (t) {
73-
cssText += this.cssFromTemplate(t, m.assetpath);
76+
cssText += this.cssFromTemplate(t, /** @type {templateWithAssetPath }*/(m).assetpath);
7477
}
7578
// module imports: <link rel="import" type="css">
7679
cssText += this.cssFromModuleImports(moduleId);

0 commit comments

Comments
 (0)