Skip to content

Commit

Permalink
Removing debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Apr 21, 2011
1 parent 660d915 commit 30e05ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions stores/memory-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ define(["../errors"], function (errors) {
},

getDocument: function (id, callback) {
console.log("inside getDocument");
setTimeout(function () {
console.log("inside getDocument's callback");
if ( id in documents ) {
console.log("inside getDocument's callback, success");
callback(null, deepCopy(documents[id]));
} else {
console.log("inside getDocument's callback, error");
callback(new errors.NoSuchDocument("No document with id = " + id),
null);
}
Expand All @@ -62,7 +58,6 @@ define(["../errors"], function (errors) {
saveDocument: function (doc, callback) {
setTimeout(function () {
if ( doc.id in documents ) {
console.log(doc.rev, documents[doc.id].rev);
if ( doc.rev === documents[doc.id].rev + 1 ) {
documents[doc.id] = deepCopy(doc);
callback(null, deepCopy(documents[doc.id]));
Expand Down

0 comments on commit 30e05ac

Please sign in to comment.