repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
update list of CouchDB views in doc
[mygpo.git]
/
couchdb
/
_design
/
clients
/
views
/
by_ua_string
/
map.js
blob
753daa13dcd4ad36641a1ed268c76157234f4440
1
function(doc)
2
{
3
if(doc.doc_type == "User")
4
{
5
for(var n in doc.devices)
6
{
7
var device = doc.devices[n];
8
if(device.user_agent)
9
{
10
emit(device.user_agent, device.id);
11
}
12
}
13
}
14
}