This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hint): properly clean up when location is changed before DOM cont…
…ent has been loaded The `beforeunload` event was never fired if the location was changed before the DOM content had been loaded (e.g. directly inside a `<script>` tag). The `unload` event is fired more consistently. This commit listens for both events to cover more potential browser bugs/edge-cases. Fixes angular/batarang#290
- Loading branch information