No, if I have a pointer to a function that exists inside a frame (iframe)
and the the frame is unloaded or navigated to another place, then function
is still in memory but it is freed so that we get the error message "Can't
execute code from a freed script". What I want to do is to determine if the
script is freed so that I don't call it.
"VK" <> wrote in message
news: oups.com...
>
> Thor W Hammer wrote:
>> Is it possible to find out if a script is freed?
>
> How do you determine the term "freed" for JavaScript? 
> Any function exists in the scope until you manually removed it (by
> setting to null).
>
>> a pointer to a function and should determine if it is freed so we don't
>> call
>> it and get error..
>
> if (typeof ptrMyFunction == "undefined") {
> // then there is no such function
> }
>