https://github.com/jasonmit/ember-onbeforeunload
JavaScript30
last year
invoke logic when transitioning between routes or closing window
MIT License