From ec3e948d9692c55dd5fe33b80c6d6c3d3d900d83 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Wed, 24 May 2017 18:07:56 -0700 Subject: [PATCH] Fix template.assetpath with typedef --- lib/utils/style-gather.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/utils/style-gather.html b/lib/utils/style-gather.html index edbaa3cd75..c1ae6b7b23 100644 --- a/lib/utils/style-gather.html +++ b/lib/utils/style-gather.html @@ -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 ``, external * stylesheets, and `dom-module`s. @@ -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: cssText += this.cssFromModuleImports(moduleId);