diff options
author | Jose Antonio Marquez | 2012-03-05 23:34:54 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-05 23:34:54 -0800 |
commit | 887e555d00939a99fd13d0fc8fe081a4feb5d677 (patch) | |
tree | bf7d6cb93982483655cab7d629632d41ac953049 /js/document/html-document.js | |
parent | 4f274aa5beff735f63905704e52e6ea938c140d9 (diff) | |
download | ninja-887e555d00939a99fd13d0fc8fe081a4feb5d677.tar.gz |
CSS on CDN preview fix
Diffstat (limited to 'js/document/html-document.js')
-rwxr-xr-x | js/document/html-document.js | 3 |
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 | } |