Works better if I define the var

This commit is contained in:
Nathan Gray 2013-10-01 17:07:08 +00:00
parent b6ea2635d2
commit e57e994e9d

View File

@ -129,7 +129,7 @@
{
_code += '(egw,widget,window,document)';
}
func = new Function('egw', 'widget', 'window', 'document', _code);
var func = new Function('egw', 'widget', 'window', 'document', _code);
} catch(e) {
_widget.egw().debug('error', 'Error while compiling JS code ', _code);
return (function() {return false;});