I've noticed sometimes people put a bunch of callable functions within their $(function() { ...here... }); block. I wondered why but then noticed a possible reason: naming collisions don't appear to be a concern if the two objects are in different jQuery code blocks.
Is my thinking correct? This would seem to be a big advantage.
But now that I've taken this approach, I have the need to make one of my functions callable from other jQuery code blocks. So I can move the function outside the code block, but it needs to call other functions inside the code block.
So do I need to move all my functions outside the code block, or is there a way to keep this separation but still be able to call one of my functions from another code block?