couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1037213 - /couchdb/trunk/share/server/util.js
Date Sat, 20 Nov 2010 14:01:45 GMT
Author: fdmanana
Date: Sat Nov 20 14:01:45 2010
New Revision: 1037213

URL: http://svn.apache.org/viewvc?rev=1037213&view=rev
Log:
Bug fix: using undeclared identifier (doc). The function argument is named obj, not doc.

Modified:
    couchdb/trunk/share/server/util.js

Modified: couchdb/trunk/share/server/util.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/server/util.js?rev=1037213&r1=1037212&r2=1037213&view=diff
==============================================================================
--- couchdb/trunk/share/server/util.js (original)
+++ couchdb/trunk/share/server/util.js Sat Nov 20 14:01:45 2010
@@ -100,8 +100,8 @@ var Couch = {
     // seal() is broken in current Spidermonkey
     seal(obj);
     for (var propname in obj) {
-      if (typeof doc[propname] == "object") {
-        recursivelySeal(doc[propname]);
+      if (typeof obj[propname] == "object") {
+        recursivelySeal(obj[propname]);
       }
     }
   }



Mime
View raw message