Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
ensure iconset's src is always relative to the main document (current…
Browse files Browse the repository at this point in the history
…ly only when native imports is used).
  • Loading branch information
sorvell committed Jan 14, 2014
1 parent abb42d3 commit c9c690b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions polymer-ui-iconset.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
offsety: 0,
type: 'iconset',
ready: function() {
// TODO(sorvell): ensure iconset's src is always relative to the main
// document; remove useNative when code paths are unified.
if (HTMLImports.useNative && this.src && (this.ownerDocument !== document)) {
this.src = this.resolvePath(this.src, this.ownerDocument.baseURI);
}
this.super();
this.iconsChanged();
this.updateThemes();
Expand Down

0 comments on commit c9c690b

Please sign in to comment.