fix media view

This commit is contained in:
j 2017-08-30 14:16:17 +02:00
parent c1da3241c1
commit 790b08ce77

View file

@ -8,7 +8,8 @@ pandora.ui.mediaView = function(options) {
self = {},
keys = ['title', 'director', 'year', 'id'],
listKeys = keys.filter(function(key) {
return Ox.isArray(Ox.getObjectById(pandora.site.itemKeys, key).type);
var itemKey = Ox.getObjectById(pandora.site.itemKeys, key)
return itemKey ? Ox.isArray(itemKey.type) : false;
}),
that = Ox.Element({}, self)
.defaults({