aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-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)