mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Add a warning if trying to set an attribute to an Object, so it doesn't just disappear
This commit is contained in:
parent
08f5e28d00
commit
be79886301
@ -525,10 +525,15 @@ var et2_widget = Class.extend({
|
||||
{
|
||||
for (var key in data)
|
||||
{
|
||||
// TODO: Why?
|
||||
if (!(data[key] instanceof Object))
|
||||
{
|
||||
_attrs[key] = data[key];
|
||||
}
|
||||
else
|
||||
{
|
||||
et2_debug("warn", "Attributes cannot be objects", this, key, data[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user