do not set item to undefined if browser gets empty selection, fixes #518

This commit is contained in:
j 2012-02-18 20:45:13 +00:00
parent b5c0bbb6d8
commit 8da7f15f86

View file

@ -115,7 +115,7 @@ pandora.ui.browser = function() {
} }
}, },
select: function(data) { select: function(data) {
pandora.UI.set({ data.ids.length && pandora.UI.set({
'item': data.ids[0] 'item': data.ids[0]
}); });
}, },