changeset 21:029b3e094e67

Fixed a bug.
author Atul Varma <varmaa@toolness.com>
date Mon, 13 Apr 2009 14:07:22 -0700
parents 1d8e0d388549
children 7b418d9d27f8
files browser-couch.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser-couch.js	Mon Apr 13 11:55:53 2009 -0700
+++ b/browser-couch.js	Mon Apr 13 14:07:22 2009 -0700
@@ -142,7 +142,7 @@
       dict.fromJSON(storage[dbName].value);
 
     function commitToStorage() {
-      storage[dbName].value = dict.toJSON();
+      storage[dbName] = dict.toJSON();
     }
 
     this.wipe = function DB_wipe(cb) {