diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-04 12:15:27 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-04 12:20:57 +0300 |
| commit | 2e952a264a4b8d1c7f4f762f324dba8f89aca865 (patch) | |
| tree | d39dc85694ed176948fe6c35d1b99c7570d86630 /src/client/model | |
| parent | 40bdc76eceb48b1e1ef3a2329e03cab8f3dcc566 (diff) | |
client/model/types: order of attributes determines appearance order. make name+type first
Diffstat (limited to 'src/client/model')
| -rw-r--r-- | src/client/model/types.js | 4 |
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(); |
