projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5fc9c
)
Add categoryFilter factory.
author
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:32:58 +0000
(11:32 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:32:58 +0000
(11:32 +0100)
src/mkws-filter.js
patch
|
blob
|
history
diff --git
a/src/mkws-filter.js
b/src/mkws-filter.js
index
e356217
..
7d9fac0
100644
(file)
--- 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,
+ };
+}