From fe376077b6e24bb01905cd83226912e25b043308 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Mon, 4 Jun 2012 16:06:56 -0700 Subject: Fixing CSS bug This is for files using 'save' and not 'save all' in which the styles would be thrown off and mixed improperly. --- js/document/mediators/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/document/mediators/template.js') diff --git a/js/document/mediators/template.js b/js/document/mediators/template.js index fcb3e7b6..068a1f48 100755 --- a/js/document/mediators/template.js +++ b/js/document/mediators/template.js @@ -227,7 +227,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, { if (template.styles[i].ownerNode.getAttribute) { //Checking for node not to be loaded from file if (template.styles[i].ownerNode.getAttribute('data-ninja-uri') === null && !template.styles[i].ownerNode.getAttribute('data-ninja-template') && !template.styles[i].ownerNode.getAttribute('data-ninja-external-url')) { - if (docStyles[styleCounter]) { + if (docStyles[styleCounter] && template.styles[i].ownerNode.getAttribute('data-ninja-node')) { //Inseting data from rules array into tag as string docStyles[styleCounter].innerHTML = this.getCssFromRules(template.styles[i].cssRules); //Syncing