From fea2b711c389ba5f31aed757622fe268b7084768 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 24 Apr 2014 11:32:58 +0100 Subject: [PATCH] Add categoryFilter factory. --- src/mkws-filter.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mkws-filter.js b/src/mkws-filter.js index e356217..7d9fac0 100644 --- a/src/mkws-filter.js +++ b/src/mkws-filter.js @@ -92,8 +92,6 @@ function targetFilter(id, name) { id: id, name: name }; - - return res; } function fieldFilter(field, value) { @@ -103,3 +101,10 @@ function fieldFilter(field, value) { value: value }; } + +function categoryFilter(id) { + return { + type: 'category', + id: id, + }; +} -- 1.7.10.4