diff options
author | Jose Antonio Marquez | 2012-06-04 16:06:56 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-04 16:06:56 -0700 |
commit | fe376077b6e24bb01905cd83226912e25b043308 (patch) | |
tree | 3b0e71fcaa02b6554ac6dd6b4b836e81ce8353ee /js/document/mediators | |
parent | 098f6a08bd5b50ee82a0f26d180ff49d0c915932 (diff) | |
download | ninja-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.
Diffstat (limited to 'js/document/mediators')
-rwxr-xr-x | js/document/mediators/template.js | 2 |
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> |