mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Silence some spurious warnings on null and ""
This commit is contained in:
parent
c6bfc44d08
commit
611c35fc5f
@ -61,8 +61,12 @@ var et2_vfs = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
set_value: function(_value) {
|
||||
if (typeof _value !== 'object')
|
||||
{
|
||||
// Only warn if it's an actual value, just blank for falsy values
|
||||
if(_value)
|
||||
{
|
||||
this.egw().debug("warn", "%s only has path, needs full array", this.id, _value);
|
||||
}
|
||||
this.span.empty().text(_value);
|
||||
return;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
||||
*/
|
||||
lang: function(_msg, _arg1)
|
||||
{
|
||||
if(typeof _msg !== "string")
|
||||
if(typeof _msg !== "string" && _msg)
|
||||
{
|
||||
egw().debug("warn", "Cannot translate an object", _msg);
|
||||
return _msg;
|
||||
|
Loading…
Reference in New Issue
Block a user