iNerd
11-22-2003, 10:14 PM
I have a simple function that's called by other following functions but netscape sais that it's undefined though it works in IE and it even works if I paste it into the address bar.
function randInt(){
var a,t,f=isNaN(f=(a=randInt.arguments)[0])?0:f;
t=isNaN(t=a[1])?1:t;
return Math.round(Math.random()*(t-f)+f);
}
function genSomething(){
//....
var l=randInt(3,5); //<--This is line 186
//....
}
Netscape sais "line 186: randInt is undefined" and IE works it fine without error. Why?
function randInt(){
var a,t,f=isNaN(f=(a=randInt.arguments)[0])?0:f;
t=isNaN(t=a[1])?1:t;
return Math.round(Math.random()*(t-f)+f);
}
function genSomething(){
//....
var l=randInt(3,5); //<--This is line 186
//....
}
Netscape sais "line 186: randInt is undefined" and IE works it fine without error. Why?