Try
$(element).fadeOut("slow", myFunction);
Your code, i.e. adding ()
would actually run the code rather than defining it as callback.
Just some quick console playing:
function test() {}
typeof test // "function"
typeof test() // "undefined"
So the argument needs to be a function and not what a function returns (except that would be function, too).