aboutsummaryrefslogtreecommitdiff
path: root/js/document/html-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-05 23:35:08 -0800
committerJose Antonio Marquez2012-03-05 23:35:08 -0800
commit97176d466bb0d217f1bc5f45e362ed15c3066507 (patch)
treedd1a0910f9d1939ada4d3aedde7fe62748d7c2e7 /js/document/html-document.js
parentde26ba991c1d6351dfed4a81c246f62d40f075d6 (diff)
parent887e555d00939a99fd13d0fc8fe081a4feb5d677 (diff)
downloadninja-97176d466bb0d217f1bc5f45e362ed15c3066507.tar.gz
Merge branch 'refs/heads/FileIO' into FileIO-Build-Candidate
Diffstat (limited to 'js/document/html-document.js')
-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 }