aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-07 18:36:31 -0800
committerJose Antonio Marquez2012-03-07 18:36:31 -0800
commitbb83bfb7af1e82dfbce7661fe2eb7612ff730c6f (patch)
tree188b5d7f8cc20e8a20b6f3725c5a24f14656b5aa
parentcef07085443b7c31e878daaad083b7408c57e104 (diff)
downloadninja-bb83bfb7af1e82dfbce7661fe2eb7612ff730c6f.tar.gz
Removing temp viewing of CDN styles
It's not done correctly, we really need the proxy for this.
-rwxr-xr-xjs/document/html-document.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 1c5cec91..6e1f654b 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -637,10 +637,10 @@ exports.HTMLDocument = Montage.create(TextDocument, {
637 for (var k in query) { 637 for (var k in query) {
638 if (query[k].href === this._document.styleSheets[i].href) { 638 if (query[k].href === this._document.styleSheets[i].href) {
639 //Disabling style sheet to reload via inserting in style tag 639 //Disabling style sheet to reload via inserting in style tag
640 var tempCSS = query[k].cloneNode(true); 640 //var tempCSS = query[k].cloneNode(true);
641 tempCSS.setAttribute('data-ninja-template', 'true'); 641 //tempCSS.setAttribute('data-ninja-template', 'true');
642 query[k].setAttribute('disabled', 'true'); 642 query[k].setAttribute('disabled', 'true');
643 this.iframe.contentWindow.document.head.appendChild(tempCSS); 643 //this.iframe.contentWindow.document.head.appendChild(tempCSS);
644 //Inserting tag 644 //Inserting tag
645 this._templateDocument.head.insertBefore(tag, query[k]); 645 this._templateDocument.head.insertBefore(tag, query[k]);
646 } 646 }