From 2e952a264a4b8d1c7f4f762f324dba8f89aca865 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 4 May 2015 12:15:27 +0300 Subject: client/model/types: order of attributes determines appearance order. make name+type first --- src/client/model/types.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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(); -- cgit v1.3.1