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/27 16:15:13 UTC
View_Snippets reverted to revision 32 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 32 by JanLehnardt.
The comment on this change is: reverting an unwarranted revert.
http://wiki.apache.org/couchdb/View_Snippets?action=diff&rev1=33&rev2=34
--------------------------------------------------
map
function(doc)
{
- if (doc.field == "undefined")
+ if (doc.field === void 0)
{
emit(doc.id, null);
}
@@ -695, +695 @@
for (idx in fields)
{
// Does the current field exists?
- if (typeof eval("doc." + fields[idx]) == "undefined")
+ if (typeof eval("doc." + fields[idx]) === void 0)
{
// It doesn't, emit the field name as key
emit(fields[idx], null);