couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject View_Snippets reverted to revision 31 on Couchdb Wiki
Date Sun, 24 Jan 2010 16:31:16 GMT
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);

Mime
View raw message