Question
prevent function access between 2 scripts
Hello,
I have a understanding problem with InDesign JavaScript Engine.
I have two simple Scripts.
Script 1:
alert(random(100));
function random (max) {
return Math.floor (Math.random() * max);
}
Script 2:
alert(random(100));
If I execute the Script 1 it is works fine.
If I execute the Script 2, it finds the function "random" from the Script 1.
How I can prevent this ?
I have tested #targetengine, #engine and #script.
mfg
mpd323