aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-05 23:34:54 -0800
committerJose Antonio Marquez2012-03-05 23:34:54 -0800
commit887e555d00939a99fd13d0fc8fe081a4feb5d677 (patch)
treebf7d6cb93982483655cab7d629632d41ac953049 /js/document
parent4f274aa5beff735f63905704e52e6ea938c140d9 (diff)
downloadninja-887e555d00939a99fd13d0fc8fe081a4feb5d677.tar.gz
CSS on CDN preview fix
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 323c1488..3f39c4df 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -623,7 +623,10 @@ exports.HTMLDocument = Montage.create(TextDocument, {
623 for (var k in query) { 623 for (var k in query) {
624 if (query[k].href === this._document.styleSheets[i].href) { 624 if (query[k].href === this._document.styleSheets[i].href) {
625 //Disabling style sheet to reload via inserting in style tag 625 //Disabling style sheet to reload via inserting in style tag
626 var tempCSS = query[k].cloneNode(true);
627 tempCSS.setAttribute('data-ninja-template', 'true');
626 query[k].setAttribute('disabled', 'true'); 628 query[k].setAttribute('disabled', 'true');
629 this.iframe.contentWindow.document.head.appendChild(tempCSS);
627 //Inserting tag 630 //Inserting tag
628 this._templateDocument.head.insertBefore(tag, query[k]); 631 this._templateDocument.head.insertBefore(tag, query[k]);
629 } 632 }