handle if invalid tpl is passed in

This commit is contained in:
psychobunny
2014-04-07 18:06:53 -04:00
parent d2033abf96
commit a150b2c6f7

View File

@@ -17,6 +17,7 @@
obj = registerGlobals(obj || {});
bind = bind ? Math.random() : false;
template = template.toString() || '';
if (bind) {
obj.__template = template;