Skip to content
Browse files

document was mistakenly a reference to the env.js document that has n…

…ow been removed
  • Loading branch information...
1 parent b073c1e commit 93faa28bd752cb3915f6a3905d60c56edd211b64 Nathan committed Sep 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/couchdb/design_document.js
View
2 lib/couchdb/design_document.js
@@ -78,7 +78,7 @@ function DesignDocument(fn){
}
this.toDocument = function(){
- if (document._id == undefined) throw new Error("Id must be specified before toDocument is valid");
+ if (this.document._id == undefined) throw new Error("Id must be specified before toDocument is valid");
return this.document;
};

0 comments on commit 93faa28

Please sign in to comment.
Something went wrong with that request. Please try again.