From 3ae06034b88e7a9887a1c9fb2f5e623cd9469669 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 6 Apr 2015 11:43:16 +0300 Subject: client: property tab cleanup; resolve #396 --- src/client/model/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/model/types.js') 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, -- cgit v1.3.1