Permalink
Browse files

Fix CS

  • Loading branch information...
lanthaler committed Jan 29, 2017
1 parent 5e99d6f commit 9ec5f5235ae012e531f7bcc576ecaebc64e0ee7c
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/hydra.js
@@ -121,16 +121,16 @@
getTypes: function(vocab) {
vocab = vocab || this.get('vocab');

var isHydraClass = function (t) { return (('rdfs:Class' === t) || ('hydra:Class' === t)); };
var isClass = function (t) { return (('rdfs:Class' === t) || ('hydra:Class' === t)); };
var types = _.map(vocab, function (entry) {
var types = entry['@type'];
if (_.isArray(types)) {
return _.find(types, isHydraClass) ? entry : null;
return _.find(types, isClass) ? entry : null;
} else {
return isHydraClass(types) ? entry : null;
return isClass(types) ? entry : null;
}
});
types = _.filter(types, function (t) { return t != null; });
types = _.filter(types, function (t) { return t !== null; });


_.each(types, function(type) {

0 comments on commit 9ec5f52

Please sign in to comment.