Yes!!! With if
function myFunction(){BLA BLA BLA BLA}
if(myFunction){MAKE SOMETHING}
function myFunction(){BLA BLA BLA BLA}
if(myFunction){MAKE SOMETHING}
There's no event that you're able to monitor, however, you can check for existence of a function on a regular basis:
If (typeof myfunction === 'function')
{
myFunction();
}
If (typeof myfunction === 'function')
{
myFunction();
}