Skip to content

Commit

Permalink
Use function instead of Set
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Mar 16, 2018
1 parent 0d1b1c2 commit 33d2e1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/style-gather.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33d2e1a

Please sign in to comment.