I wonder how can I return value from .done function to the outer function which calls the .done function itself. For example,
var func1 = function(){
var HowToGrabThis = func2().done(function(obj)
{
// some code
return 'test'
});
alert (HowToGrabThis) // Should print 'test'
}