JS: I'm not getting the scope

Posted by Manuel on Stack Overflow See other posts from Stack Overflow or by Manuel
Published on 2010-06-16T19:55:16Z Indexed on 2010/06/16 20:02 UTC
Read the original article Hit count: 369

Filed under:
|
|
|

Hi there,

I'm trying to modify CouchDB's JS API to work asynchronous, but there is an error I cannot solve:

Please find my JS API find at pastebin. If I call (new CouchDB("dbname")).designDocs() (line 193) I get an error because the okCallback function is not defined in the callback function.

I don't know why; it should be defined in this scope..

Any hints are very welcome!

Cheers, Manuel

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about scope