diff --git a/addon/services/router-scroll.js b/addon/services/router-scroll.js index 1dae325..29d672f 100644 --- a/addon/services/router-scroll.js +++ b/addon/services/router-scroll.js @@ -91,9 +91,7 @@ class RouterScroll extends Service { addListener(this.router, 'routeDidChange', this._routeDidChange); } - destroy() { - reset(); - + willDestroy() { removeListener(this.router, 'routeWillChange', this._routeWillChange); removeListener(this.router, 'routeDidChange', this._routeDidChange); @@ -105,7 +103,7 @@ class RouterScroll extends Service { window.cancelAnimationFrame(callbackRequestId); } - super.destroy(...arguments); + super.willDestroy(...arguments); } /**