From 4d3fd7598d6f20df7a84c66526adc8409badc383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 14 Feb 2014 14:00:17 +0100 Subject: [PATCH] appDisplay: Re-add _getCategories It was introduced by one of the commits reverted by 812a61939e2d06, but is now used for app folders as well; add it back. --- js/ui/appDisplay.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 0d5328943..e2db974b3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -46,6 +46,13 @@ const INDICATORS_ANIMATION_MAX_TIME = 0.75; const PAGE_SWITCH_TRESHOLD = 0.2; const PAGE_SWITCH_TIME = 0.3; +function _getCategories(info) { + let categoriesStr = info.get_categories(); + if (!categoriesStr) + return []; + return categoriesStr.split(';'); +} + function _listsIntersect(a, b) { for (let itemA of a) if (b.indexOf(itemA) >= 0)