Permalink
Browse files

loader: allow stylesheets and scripts in components defined in document.

  • Loading branch information...
sorvell committed Jan 17, 2013
1 parent b73c354 commit 9875a08fb3f0b153ea044d19b8b3b39cf6e3656c
Showing with 3 additions and 5 deletions.
  1. +3 −5 platform/ComponentDocuments/loader.js
@@ -158,11 +158,9 @@ var componentLoader = {
}
});
});
- if (inNode != document) {
- $$(inNode, "link[rel=stylesheet],script[src]").forEach(function(n) {
- loader.load(n, nop);
- });
- }
+ $$(inNode, "element link[rel=stylesheet],element script[src]").forEach(function(n) {
+ loader.load(n, nop);
+ });
if (!loader.inflight) {
loader.oncomplete();
}

0 comments on commit 9875a08

Please sign in to comment.