Detecting Window Closing in Ember Jul 31, 2015 In a long-running app such as you might build in Ember, it can be useful to detect when the window is closing. This is easily detected with JavaScript, and there are easy places to put the code in your Ember app. view source Advertisement