summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
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,