From 29266e0977e638f00cb87850ec0856a44fb5bbdf Mon Sep 17 00:00:00 2001 From: bekzod Date: Sat, 28 Oct 2017 08:33:11 +0500 Subject: [PATCH] cleanup `active` computed property --- packages/ember-glimmer/lib/components/link-to.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/ember-glimmer/lib/components/link-to.ts b/packages/ember-glimmer/lib/components/link-to.ts index 1092002024d..66475a03d3f 100644 --- a/packages/ember-glimmer/lib/components/link-to.ts +++ b/packages/ember-glimmer/lib/components/link-to.ts @@ -592,10 +592,7 @@ const LinkComponent = EmberComponent.extend({ @property active @private */ - active: computed('attrs.params', '_active', function computeLinkToComponentActiveClass(this: any) { - let currentState = get(this, '_routing.currentState'); - if (!currentState) { return false; } - + active: computed('activeClass', '_active', function computeLinkToComponentActiveClass(this: any) { return this.get('_active') ? get(this, 'activeClass') : false; }),