summaryrefslogtreecommitdiff
path: root/src/client/model/types.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-10 17:55:03 +0200
committerAlon Levy <alon@pobox.com>2015-04-10 18:14:47 +0200
commit5ecd636b8104cbc7c20c68afedaaba68d0298d68 (patch)
tree8e98744002e139f9cfc6a7255033f5a54c2f2a09 /src/client/model/types.js
parentc50c2a32f4f81f47f37397b6091d978587bd1bf7 (diff)
client: domain type_attributes are now a list for ordering
First type is default, and order is for shift-up/down selection, filter menu and type drop down in properties menu (so, basically everywhere).
Diffstat (limited to 'src/client/model/types.js')
-rw-r--r--src/client/model/types.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/model/types.js b/src/client/model/types.js
index 867969ea..ac10f374 100644
--- a/src/client/model/types.js
+++ b/src/client/model/types.js
@@ -2,13 +2,11 @@ define(['underscore', 'util', 'model/domain_types'],
function(_, util, domain_types)
{
-var nodetypes,
- all_attributes,
- type_attributes = domain_types.type_attributes,
+var all_attributes,
+ type_attributes = _.object(domain_types.type_attributes),
+ nodetypes = _.map(domain_types.type_attributes, 0),
attribute_titles = domain_types.attribute_titles;
-nodetypes = _.keys(type_attributes);
-
if (undefined === type_attributes['_defaults']) {
type_attributes['_defaults'] = {
'title': 'default',