Some more type checking before use to avoid errors

This commit is contained in:
Nathan Gray 2014-12-11 18:02:08 +00:00
parent 782e3438ee
commit 4d34079576

View File

@ -230,7 +230,7 @@ function et2_checkType(_val, _type, _attr, _widget)
// Javascript // Javascript
if (_type == "js") if (_type == "js")
{ {
if (typeof _val == "function") if (typeof _val == "function" || typeof _val == "undefined")
{ {
return _val; return _val;
} }