From b307177fb21e6d68175f7db9211df7d6dc990281 Mon Sep 17 00:00:00 2001 From: Jordan Hawker Date: Thu, 29 Jul 2021 14:23:12 -0700 Subject: [PATCH] [router.ts] Convert this._super to super The router class has already been converted to a native JS class, so it should be using `super.willDestroy` in its `willDestroy` hook instead of `this._super`. --- packages/@ember/-internals/routing/lib/system/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ember/-internals/routing/lib/system/router.ts b/packages/@ember/-internals/routing/lib/system/router.ts index 539add97aa1..ccabbe8bc1d 100644 --- a/packages/@ember/-internals/routing/lib/system/router.ts +++ b/packages/@ember/-internals/routing/lib/system/router.ts @@ -802,7 +802,7 @@ class EmberRouter extends EmberObject.extend(Evented) implements Evented { this._toplevelView = null; } - this._super(...arguments); + super.willDestroy(); this.reset();