From 33d2e1a8f458e55d169ccf48c6354950a9a5e920 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Fri, 16 Mar 2018 23:57:45 +0100 Subject: [PATCH] Use function instead of Set --- lib/utils/style-gather.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/style-gather.html b/lib/utils/style-gather.html index d4a141e981..3b0a48da6a 100644 --- a/lib/utils/style-gather.html +++ b/lib/utils/style-gather.html @@ -123,7 +123,9 @@ // other dom-modules that contain styling let include = e.getAttribute(INCLUDE_ATTR); if (include) { - styles.push(...new Set(this.stylesFromModules(include))); + styles.push(...this.stylesFromModules(include).filter(function(item, index, self) { + return self.indexOf(item) === index; + })); } if (baseURI) { e.textContent = Polymer.ResolveUrl.resolveCss(e.textContent, baseURI);