aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-30 23:03:04 -0700
committerJose Antonio Marquez2012-05-30 23:03:04 -0700
commit0ed38667daa2466963d940f2a3cec0b06743ac5d (patch)
treef772992f84d870a415de2eb86ec1cb0225f23c36 /js
parent322532ba45158835f7228f0149ddf6e22215bfa3 (diff)
downloadninja-0ed38667daa2466963d940f2a3cec0b06743ac5d.tar.gz
Fixing CSS overwrite issue
Diffstat (limited to 'js')
-rw-r--r--js/mediators/io-mediator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index 1edcc06c..4dbf32d5 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -405,7 +405,7 @@ exports.IoMediator = Montage.create(Component, {
405 for (var n in docLinks) { 405 for (var n in docLinks) {
406 if (docLinks[n].attributes) { 406 if (docLinks[n].attributes) {
407 for (var m in docLinks[n].attributes) { 407 for (var m in docLinks[n].attributes) {
408 if (docLinks[n].attributes[m].name && docLinks[n].attributes[m].name.indexOf('data-ninja') != -1) { 408 if (docLinks[n].attributes[m].name && docLinks[n].attributes[m].name.indexOf('data-ninja') !== -1) {
409 docLinks[n].removeAttribute(docLinks[n].attributes[m].name); 409 docLinks[n].removeAttribute(docLinks[n].attributes[m].name);
410 } 410 }
411 } 411 }
@@ -417,7 +417,7 @@ exports.IoMediator = Montage.create(Component, {
417 if (template.css[i].ownerNode.getAttribute) { 417 if (template.css[i].ownerNode.getAttribute) {
418 if (template.css[i].ownerNode.getAttribute('data-ninja-uri') === null && !template.css[i].ownerNode.getAttribute('data-ninja-template')) {//TODO: Use querySelectorAll 418 if (template.css[i].ownerNode.getAttribute('data-ninja-uri') === null && !template.css[i].ownerNode.getAttribute('data-ninja-template')) {//TODO: Use querySelectorAll
419 //Inseting data from rules array into <style> as string 419 //Inseting data from rules array into <style> as string
420 if (docStyles[styleCounter] && !template.css[i].ownerNode.getAttribute('data-ninja-external-url')) { 420 if (docStyles[styleCounter] && !template.css[i].ownerNode.getAttribute('data-ninja-external-url') && template.css[i].ownerNode.getAttribute('data-ninja-node')) {
421 docStyles[styleCounter].innerHTML = this.getCssFromRules(template.css[i].cssRules); 421 docStyles[styleCounter].innerHTML = this.getCssFromRules(template.css[i].cssRules);
422 styleCounter++; 422 styleCounter++;
423 } 423 }