Why is my javascript function sometimes "not defined"?
- by harpo
Problem: I call my javascript function, and sometimes I get the error 'myFunction is not defined'.
But it is defined.
For example. I'll occasionally get 'copyArray is not defined' even in this example:
function copyArray( pa ) {
var la = [];
for (var i=0; i < pa.length; i++)
la.push( pa[i] );
return la;
}
…