I've been working on adapting CouchDB's JS API to function asynchronously, but I'm encountering an unresolved error:
You can find my version of the JS API here on Pastebin. Whenever I execute
(new CouchDB("dbname")).allDocs(function(result) {console.log(result)})
(line 193), I encounter an error because the okCallback function is not defined within the callback.
I'm puzzled as to why this issue is arising; the okCallback should be defined in this specific scope..
If anyone has any pointers or suggestions, they would be greatly appreciated!
Cheers, Manuel