mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] devtools: allow expansion of empty class
This commit makes it possible to expand empty classes to see their prototype instead of displaying them as simple empty objects.
This commit is contained in:
committed by
Géry Debongnie
parent
3e11fe6b12
commit
15c2604df1
@@ -834,7 +834,9 @@
|
|||||||
case obj instanceof Object:
|
case obj instanceof Object:
|
||||||
child.contentType = "object";
|
child.contentType = "object";
|
||||||
child.hasChildren =
|
child.hasChildren =
|
||||||
Object.keys(obj).length || Object.getOwnPropertySymbols(obj).length;
|
Object.keys(obj).length ||
|
||||||
|
Object.getOwnPropertySymbols(obj).length ||
|
||||||
|
obj.constructor.name !== "Object";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
child.contentType = typeof obj;
|
child.contentType = typeof obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user