What steps will reproduce the problem?
1. Create two modal links pointing to the same page.
2. The page it points to generates inline javascript.
3. After unloading the first page by closing the modal, click on the other modal link
4. The new page will generate javascript, but the old javascript from the last page will still be alive.
What is the expected output? What do you see instead?
I expect the javascript from the 1st page to be unloaded and not reappear when the second page is loaded.
What version of the product are you using? On what operating system?
The newest
Please provide any additional information below.