You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/11/20 15:01:45 UTC
svn commit: r1037213 - /couchdb/trunk/share/server/util.js
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]);
}
}
}