How do I pass a function as a parameter without the function executing in the "parent" function or using
eval()? (Since I've read that it's insecure.)
I have this:
It works, but the problem is that
refreshContactList fires when the function is called, rather than when it's used in the function.
I could get around it using