Skip to content

Commit

Permalink
Fix template.assetpath with typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 25, 2017
1 parent 0744364 commit ec3e948
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/utils/style-gather.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
return Polymer.DomModule.import(moduleId);
}

/** @typedef {{assetpath: string}} */
let templateWithAssetPath; // eslint-disable-line no-unused-vars

/**
* Module with utilities for collection CSS text from `<templates>`, external
* stylesheets, and `dom-module`s.
Expand Down Expand Up @@ -70,7 +73,7 @@
// include css from the first template in the module
let t = m.querySelector('template');
if (t) {
cssText += this.cssFromTemplate(t, m.assetpath);
cssText += this.cssFromTemplate(t, /** @type {templateWithAssetPath }*/(m).assetpath);
}
// module imports: <link rel="import" type="css">
cssText += this.cssFromModuleImports(moduleId);
Expand Down

0 comments on commit ec3e948

Please sign in to comment.