clean up ENDIF conditional if object.value is undefined and is used in an ELSE block

This commit is contained in:
psychobunny
2014-02-24 13:49:15 -05:00
parent 1052165373
commit a79ca2b135

View File

@@ -410,7 +410,8 @@
} else {
// clean up all undefined conditionals
template = template.replace(/<!-- ELSE -->/gi, 'ENDIF -->')
.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');
.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '')
.replace(/<!-- ENDIF ([^@]*?)-->/gi, '');
}
return template;