You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/24 17:31:16 UTC
View_Snippets reverted to revision 31 on Couchdb Wiki
Dear wiki user,
You have subscribed to a wiki page "Couchdb Wiki" for change notification.
The page View_Snippets has been reverted to revision 31 by JanLehnardt.
The comment on this change is: invalid change.
http://wiki.apache.org/couchdb/View_Snippets?action=diff&rev1=32&rev2=33
--------------------------------------------------
map
function(doc)
{
- if (doc.field === void 0)
+ if (doc.field == "undefined")
{
emit(doc.id, null);
}
@@ -695, +695 @@
for (idx in fields)
{
// Does the current field exists?
- if (typeof eval("doc." + fields[idx]) === void 0)
+ if (typeof eval("doc." + fields[idx]) == "undefined")
{
// It doesn't, emit the field name as key
emit(fields[idx], null);