diff options
author | Jose Antonio Marquez | 2012-06-07 15:59:51 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-07 15:59:51 -0700 |
commit | 25fa6978470c296bd40321d5aa3046d34062ecd8 (patch) | |
tree | f954c59dc8d818edc1ac98f97122dac0e1c46806 /js/document/mediators | |
parent | 5f780df3b5410386f9cf7691ebdf05969770759f (diff) | |
download | ninja-25fa6978470c296bd40321d5aa3046d34062ecd8.tar.gz |
Fixing empty property bug with montage class on HTML tag
Diffstat (limited to 'js/document/mediators')
-rwxr-xr-x | js/document/mediators/template.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/document/mediators/template.js b/js/document/mediators/template.js index 560f8c45..e04c16d9 100755 --- a/js/document/mediators/template.js +++ b/js/document/mediators/template.js | |||
@@ -155,7 +155,9 @@ exports.TemplateDocumentMediator = Montage.create(Component, { | |||
155 | wipeAttributes(htmlTagDoc); | 155 | wipeAttributes(htmlTagDoc); |
156 | for (var m in htmlTagMem.attributes) { | 156 | for (var m in htmlTagMem.attributes) { |
157 | if (htmlTagMem.attributes[m].value) { | 157 | if (htmlTagMem.attributes[m].value) { |
158 | htmlTagDoc.setAttribute(htmlTagMem.attributes[m].name, htmlTagMem.attributes[m].value.replace(/montage-app-bootstrapping/gi, '')); | 158 | if (htmlTagMem.attributes[m].value.replace(/montage-app-bootstrapping/gi, '').length>0) { |
159 | htmlTagDoc.setAttribute(htmlTagMem.attributes[m].name, htmlTagMem.attributes[m].value.replace(/ montage-app-bootstrapping/gi, '')); | ||
160 | } | ||
159 | } | 161 | } |
160 | } | 162 | } |
161 | //Getting list of current nodes (Ninja DOM) | 163 | //Getting list of current nodes (Ninja DOM) |