Closed billybonks closed 10 years ago
This should be dealt with in userland. If you need access to the passed in access token, just wrap your call in a closure. http://stackoverflow.com/questions/2900839/how-to-structure-javascript-callback-so-that-function-scope-is-maintained-proper
for what reason should the user of the lib have to write more lines of code for every call if we can solve the problem in a few lines that gets reused everytime ?
this.context
is static. While a requests are being fired, it can still get altered. Only way to ensure that it works correctly would be to pass it in the get
call etc..
np
i added functionality so that the callbacks from post and get are called in the specified context, added the documentation to the read me.