appDisplay: Re-add _getCategories

It was introduced by one of the commits reverted by 812a61939e,
but is now used for app folders as well; add it back.
This commit is contained in:
Florian Müllner 2014-02-14 14:00:17 +01:00
parent 620e3cef20
commit 4d3fd7598d

View File

@ -46,6 +46,13 @@ const INDICATORS_ANIMATION_MAX_TIME = 0.75;
const PAGE_SWITCH_TRESHOLD = 0.2; const PAGE_SWITCH_TRESHOLD = 0.2;
const PAGE_SWITCH_TIME = 0.3; const PAGE_SWITCH_TIME = 0.3;
function _getCategories(info) {
let categoriesStr = info.get_categories();
if (!categoriesStr)
return [];
return categoriesStr.split(';');
}
function _listsIntersect(a, b) { function _listsIntersect(a, b) {
for (let itemA of a) for (let itemA of a)
if (b.indexOf(itemA) >= 0) if (b.indexOf(itemA) >= 0)