So this is my ajax call (pretty much standard jQuery but using the couchdb jquery library, http://daleharvey.github.com/jquery.couch.js/ ):
var stuff = "some stuff";
$.couch.db("test_db").create({
success: enyo.bind(this, function (data) {
console.log(stuff);
})
});
stuff = "a change in stuff";
And I'd like the output of console.log to be "some stuff" rather then "a change in stuff".
The more methods to do this the better, cause I think some methods might need me to not use "enyo.bind" ( http://enyojs.com/ ), but perhaps I can accomplish the same thing a little differently with those methods.