Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Polymer/designer
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Apr 5, 2014
2 parents 98cf4ca + 8bfafdc commit 90099b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions elements/x-dom-serializer/x-dom-serializer.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,15 @@
dumpImports: function(element, indent) {
var n$ = element.querySelectorAll('*');
var imports = [], metas=[];
for (var i=0, l=n$.length, n, m; (i<l) && (n=n$[i]); i++) {
for (var i=0, l=n$.length, n, m, p; (i<l) && (n=n$[i]); i++) {
m = n.meta;
if (m && metas.indexOf(m) < 0) {
metas.push(m);
var f = m.getImports().content.cloneNode(true);
imports = imports.concat(f.querySelectorAll('link[rel=import]').array());
p = m.getImports();
if (p) {
p = p.content.cloneNode(true);
imports = imports.concat(p.querySelectorAll('link[rel=import]').array());
}
}
}
var href = window.location.origin + window.location.pathname;
Expand Down
4 changes: 3 additions & 1 deletion elements/x-meta/x-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@
getImports: function() {
var t = this.querySelector('#imports');
// resolve urls in template.
Platform.urlResolver.resolveTemplate(t);
if (t) {
Platform.urlResolver.resolveTemplate(t);
}
return t;
},
loadImports: function(callback) {
Expand Down

0 comments on commit 90099b5

Please sign in to comment.