jquery, javascript and callback timing

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-05-18T13:56:38Z Indexed on 2010/05/18 14:00 UTC
Read the original article Hit count: 167

Filed under:
|
|
|
var blah = Some.Thing(data, function(a,b) {


        // code here 

});

Some.Thing = function(data, callback) {

    var a = Other.Thing(data, function() {

    });

};

My question is, will the part that says //code here fire ONLY after everything else and their callbacks fire?

The //code here part seems to fire, and there seems to be some timing issue.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript