Got JS handlers working again

This commit is contained in:
Andreas Stöckel 2011-08-21 12:23:56 +00:00
parent c4293ba3bc
commit 0fdf434321

View File

@ -145,11 +145,16 @@ function et2_checkType(_val, _type, _attr)
if (_type == "js")
{
// Handle the default case
if (_val === null || _val instanceof Function)
if (_val === null)
{
return null;
}
if (_val instanceof Function)
{
return _val;
}
// Create a new function containing the code
if (typeof _val == "string")
{