summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-05-04 12:15:27 +0300
committerAlon Levy <alon@pobox.com>2015-05-04 12:20:57 +0300
commit2e952a264a4b8d1c7f4f762f324dba8f89aca865 (patch)
treed39dc85694ed176948fe6c35d1b99c7570d86630
parent40bdc76eceb48b1e1ef3a2329e03cab8f3dcc566 (diff)
client/model/types: order of attributes determines appearance order. make name+type first
-rw-r--r--src/client/model/types.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/model/types.js b/src/client/model/types.js
index ac10f374..bb534d00 100644
--- a/src/client/model/types.js
+++ b/src/client/model/types.js
@@ -15,9 +15,7 @@ if (undefined === type_attributes['_defaults']) {
}
_.pluck(_.values(type_attributes), 'attributes').map(function (attributes) {
- attributes.push('name');
- attributes.push('type');
- attributes.sort();
+ attributes.splice(0, 0, 'name', 'type');
});
all_attributes = _.union(_.flatten(_.pluck(_.values(type_attributes), 'attributes'))).sort();