Question: Am using `$.Deferred()` to wait for asynchronous call and then get data from it.
Tried this so far : <http://jsfiddle.net/RMSbx/1/>

```
var result = "";
function asyncCallWrapper () {
  return $.Deferred(function(def) { asyncCallFunction(arg1, function ( //Fires a callback when completed
    def.resolve(data);
  )))
}
$.when(asyncCallWrapper ()).done(function (dataFromAsyncCall) {
  alert(dataFromAsyncCall); // Alerts proper data
  result = dataFromAsyncCall;
});

alert(result);// Empty string

```

How can I access `result` outside done()

Answer: 
If you're using Javascript (you didn't specify), you can just access the value by doing this:

```
sCurrentLine.issue

```

That's it.
Just for the sake of completeness there is another way access it in javascript

```
sCurrentLine["issue"]

```