diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/mediators/io-mediator.js | 4 |
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 | } |