0

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'
}
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121

0 Answers0