diff --git a/addon/services/visible.js b/addon/services/visible.js index bbd7016..59d5e87 100644 --- a/addon/services/visible.js +++ b/addon/services/visible.js @@ -48,5 +48,9 @@ export default Ember.Service.extend({ }; window.onfocus = boundCallback; }, + willDestroy: function() { + window.onblur = () => {}; + window.onfocus = () => {}; + } });