From a150b2c6f70d6b22c46b1310f450318c3a7345f1 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 7 Apr 2014 18:06:53 -0400 Subject: [PATCH] handle if invalid tpl is passed in --- public/src/templates.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/templates.js b/public/src/templates.js index 942bb46311..eacef3aa3f 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -17,6 +17,7 @@ obj = registerGlobals(obj || {}); bind = bind ? Math.random() : false; + template = template.toString() || ''; if (bind) { obj.__template = template;