summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-06 11:43:16 +0300
committerAlon Levy <alon@pobox.com>2015-04-06 11:43:16 +0300
commit3ae06034b88e7a9887a1c9fb2f5e623cd9469669 (patch)
treef4fcf31e491ded0f747538af683322bdad0730ba /src/client/model
parentcadfc79763a9c5c7473ca8ab764a0f9c56b125c1 (diff)
client: property tab cleanup; resolve #396
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/types.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/model/types.js b/src/client/model/types.js
index a30777e7..76959a83 100644
--- a/src/client/model/types.js
+++ b/src/client/model/types.js
@@ -73,8 +73,8 @@ return (
{
nodetypes: nodetypes,
type_attributes: function (type) {
- util.assert(type[0] !== '_', 'invalid type name');
- return type_attributes[type_attributes.hasOwnProperty(type) ? type : '_defaults'].attributes;
+ util.assert(!type || type[0] !== '_', 'invalid type name');
+ return type_attributes[!type && type_attributes.hasOwnProperty(type) ? type : '_defaults'].attributes;
},
all_attributes: all_attributes,
attribute_titles: attribute_titles,