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 32 on Couchdb Wiki
Date Wed, 27 Jan 2010 15:15:13 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 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);

Mime
View raw message