fix media view
This commit is contained in:
parent
c1da3241c1
commit
790b08ce77
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ pandora.ui.mediaView = function(options) {
|
||||||
self = {},
|
self = {},
|
||||||
keys = ['title', 'director', 'year', 'id'],
|
keys = ['title', 'director', 'year', 'id'],
|
||||||
listKeys = keys.filter(function(key) {
|
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)
|
that = Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
|
|
Loading…
Reference in a new issue