I am trying to set a variable within one promise method and access it in another, but not having much luck.
I have this code:
$.getJSON('some/file/')
.done(function(response) {
    var foo = response;
})
.always(function() {
    // How can I access 'foo' here?
});
So how can I access the foo variable in other promise methods?
 
     
    