Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Back button won't trigger destructors #24
Using the back button does not trigger destructors.
Since compilers would need to clean up event listeners bound to other elements (like
Example files can be found here: https://gist.github.com/foobear/a9b2b2a678cdd948e934c0e61138a5b6
The example above was tested in Chrome 60 and Firefox 54.
I actually cannot confirm this bug. Back button definitely calls destructors on jQuery 3.
However, I've run into an issue where a destructor crashed, causing all later destructors not to be called. The destructor belonged to a compiler outside the content that was usually replaced, so the problem mostly triggered when using the back button, but is actually not caused by the back button in the first place.