I have two functions bound to a click event at two different times (using jQuery). The order in which they are fired is significant. They are firing in the correct order.
The first thing I'm asking is: why do you have two functions bound to the same click event? Having access to the code, why don't you just make that one single call?
$(function (){
var callbackOne = function(e){
alert("I'm the first callback... Warning, I might return false!");
return false;
};
var callbackTwo = function(e){
alert("I'm the second callback");
};
$(document).click(function (e){
if(callbackOne(e)){
callbackTwo(e);
}
});
});