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

Commit

Permalink
remove path fixup in Polymer.importElements: use Platform.urlResolver…
Browse files Browse the repository at this point in the history
….resolveTemplate | resolveDom to fix paths before using importElements.
  • Loading branch information
sorvell committed Feb 19, 2014
1 parent cc80e6d commit fd17162
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/declaration/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@

function importElements(elementOrFragment, callback) {
if (elementOrFragment) {
var ports = elementOrFragment.querySelectorAll('link[rel=import]');
// normalize url...
for (var i=0, l=ports.length, p; (i<l) && (p=ports[i]); i++) {
p.href = p.href;
}
document.head.appendChild(elementOrFragment);
whenPolymerReady(callback);
} else if (callback) {
Expand Down

0 comments on commit fd17162

Please sign in to comment.