L
laredotornado
Hello,
What is a cross-browser way to check if a function has been defined?
It seems that this code
if (myFn) {
myFn();
}
executes whether myFn is defined or not. When it is not, a JS error
results.
Your help is greatly appreciated, - Dave
What is a cross-browser way to check if a function has been defined?
It seems that this code
if (myFn) {
myFn();
}
executes whether myFn is defined or not. When it is not, a JS error
results.
Your help is greatly appreciated, - Dave