aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-04 16:06:56 -0700
committerJose Antonio Marquez2012-06-04 16:06:56 -0700
commitfe376077b6e24bb01905cd83226912e25b043308 (patch)
tree3b0e71fcaa02b6554ac6dd6b4b836e81ce8353ee
parent098f6a08bd5b50ee82a0f26d180ff49d0c915932 (diff)
downloadninja-fe376077b6e24bb01905cd83226912e25b043308.tar.gz
Fixing CSS bug
This is for files using 'save' and not 'save all' in which the styles would be thrown off and mixed improperly.
-rwxr-xr-xjs/document/mediators/template.js2
1 files changed, 1 insertions, 1 deletions
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, {
227 if (template.styles[i].ownerNode.getAttribute) { 227 if (template.styles[i].ownerNode.getAttribute) {
228 //Checking for node not to be loaded from file 228 //Checking for node not to be loaded from file
229 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')) { 229 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')) {
230 if (docStyles[styleCounter]) { 230 if (docStyles[styleCounter] && template.styles[i].ownerNode.getAttribute('data-ninja-node')) {
231 //Inseting data from rules array into tag as string 231 //Inseting data from rules array into tag as string
232 docStyles[styleCounter].innerHTML = this.getCssFromRules(template.styles[i].cssRules); 232 docStyles[styleCounter].innerHTML = this.getCssFromRules(template.styles[i].cssRules);
233 //Syncing <style> tags count since it might be mixed with <link> 233 //Syncing <style> tags count since it might be mixed with <link>