I often use a construct like this:
var $this, url, callback; //some private vars
loadCallback = function($that, url, callback) {
return function(responseText, textStatus, req) {
...
};
})($this, url, callback)
However that is not quite comfortable. Is there some alternative?
I already took a look at jQuery.proxy, but that functions seems to fix the "this" variable so loadCallback can not get called applying another "this" context.