handle if invalid tpl is passed in

v1.18.x
psychobunny 11 years ago
parent d2033abf96
commit a150b2c6f7

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

Loading…
Cancel
Save