projects
/
mkws-moved-to-github.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote branch 'origin/master' into wosch
[mkws-moved-to-github.git]
/
src
/
mkws-filter.js
1
// Factory function for filters. These can be of several types.
2
function filter(id, field, value) {
3
var res;
4
5
if (id) {
6
res = { id: id, name: name };
7
} else {
8
res = { field: field, value: value };
9
}
10
11
return res;
12
}