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.
If what nickf said doesn't work, you could use a small state machine:
var trigger = 0;
$(document).click(function() {
alert('a');
if(you_want_to_return_false) {
trigger = 1;
return false;
}
});
$(document).click(function() {
if(trigger !== 0) {
alert('b');
}
trigger = 0;
});
Not the prettiest solution, but it will work.