method-combinators icon indicating copy to clipboard operation
method-combinators copied to clipboard

async.after can't trigger after ajax successed

Open NoahZhang opened this issue 12 years ago • 0 comments

In your example async_base is this function


 function () {
      jQuery.get('http://example.com/comedians/jseinfeld.json', {}, function (data) {
        this.name = data.name;
        this.occupation = data.occupation;
      });
    }

Call this function use

async_base.apply(this, argv.concat(decorated_callback));

async_base can't receive parameter. Where is invoke decorated_callback?

NoahZhang avatar Sep 02 '13 07:09 NoahZhang