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

Commit

Permalink
Attempt to upgrade elements in HTMLImports before main document
Browse files Browse the repository at this point in the history
Related to #103
  • Loading branch information
dfreedm committed Feb 22, 2014
1 parent 9538b4f commit c40b8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ function upgradeDocument(doc) {

function upgradeDocumentTree(doc) {
doc = wrapIfNeeded(doc);
upgradeDocument(doc);
//console.log('upgradeDocumentTree: ', (doc.baseURI).split('/').pop());
// upgrade contained imported documents
var imports = doc.querySelectorAll('link[rel=' + IMPORT_LINK_TYPE + ']');
Expand All @@ -326,6 +325,7 @@ function upgradeDocumentTree(doc) {
upgradeDocumentTree(n.import);
}
}
upgradeDocument(doc);
}

// exports
Expand Down

0 comments on commit c40b8cf

Please sign in to comment.