Skip to content

Commit d6cc035

Browse files
authored
Run service teardown code in willDestroy() (#257)
* Run service teardown code in willDestroy() * Revert super.willDestroy
1 parent df23a15 commit d6cc035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class EmberRouterScroll extends EmberRouter {
114114
});
115115
}
116116

117-
destroy() {
117+
willDestroy() {
118118
reset();
119119

120120
if (requestId) {
@@ -125,7 +125,7 @@ class EmberRouterScroll extends EmberRouter {
125125
window.cancelAnimationFrame(callbackRequestId);
126126
}
127127

128-
super.destroy(...arguments);
128+
super.willDestroy(...arguments);
129129
}
130130

131131
/**

0 commit comments

Comments
 (0)