aboutsummaryrefslogtreecommitdiff
path: root/js/document/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-07 15:59:51 -0700
committerJose Antonio Marquez2012-06-07 15:59:51 -0700
commit25fa6978470c296bd40321d5aa3046d34062ecd8 (patch)
treef954c59dc8d818edc1ac98f97122dac0e1c46806 /js/document/mediators
parent5f780df3b5410386f9cf7691ebdf05969770759f (diff)
downloadninja-25fa6978470c296bd40321d5aa3046d34062ecd8.tar.gz
Fixing empty property bug with montage class on HTML tag
Diffstat (limited to 'js/document/mediators')
-rwxr-xr-xjs/document/mediators/template.js4
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)