As far as destroying an interval goes, you can replace the existing setInterval function before loading the guest code with a function that adds each created interval to a table. At destruction time you can use it to cancel the intervals.
On Thu, May 25, 2017 at 10:44 AM, 'Kevin Reid' via Google Caja Discuss <[email protected]> wrote: > On Thu, May 25, 2017 at 6:00 AM, Bert Lagaisse <[email protected]> > wrote: >> >> I have a similar question. I'm trying to unload a frame (and containing >> div), which has an interval in it. For some reason, the interval keeps >> firing if I remove the div from the hostpage. >> Is it possible to "unload" a guest page, or completely remove the frame >> and all its contents (including intervals etc). > > > Caja does not support destroying a guest. It would be possible, but hasn't > been implemented. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Google Caja Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Mike Stay - [email protected] http://www.cs.auckland.ac.nz/~mike http://reperiendi.wordpress.com -- --- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
