diff options
| author | garbash <dor.garbash@gmail.com> | 2015-07-01 09:59:04 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-07-06 12:33:52 +0300 |
| commit | 91cd41b75d77b85b5f7a16ab6a447a36096d1305 (patch) | |
| tree | 59df61e7f523c6345a3b81c40517cd0c65264293 /src | |
| parent | 248d9b3510c9970623b9f1f1af73ad197600f68f (diff) | |
client/model/types: assert only that all used attriutes have a defined title
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/model/types.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/model/types.js b/src/client/model/types.js index d4c4aa81..ffea7948 100644 --- a/src/client/model/types.js +++ b/src/client/model/types.js @@ -39,7 +39,8 @@ _.pluck(_.values(type_attributes), 'attributes').map(function (attributes) { all_attributes = _.union(_.flatten(_.pluck(_.values(type_attributes), 'attributes'))).sort(); -util.assert(_.isEqual(all_attributes, _.keys(attribute_titles).sort())); +util.assert(_.filter(all_attributes, + function (attr) { return attribute_titles[attr] === undefined; }).length == 0); return ( { |
