Skip to content

Commit ae946b7

Browse files
rajakvklocks
authored andcommitted
Fix linting error (#775)
1 parent 5fc7a0f commit ae946b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/components/ember-anchor.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable ember/classic-decorator-no-classic-methods */
2-
import { get } from '@ember/object';
31
import AnchorComponent from 'ember-anchor/components/ember-anchor';
42
import config from 'ember-api-docs/config/environment';
53
import getOffset from 'ember-api-docs/utils/get-offset';
@@ -8,7 +6,7 @@ export default class EmberAnchor extends AnchorComponent {
86
// This overrides Ember Anchor to support scrolling within a fixed position element
97
_scrollToElemPosition() {
108
let qp = this.anchorQueryParam;
11-
let qpVal = this.get(get(this, 'attrs.a') ? 'a' : `controller.${qp}`);
9+
let qpVal = this[this['attrs.a'] ? 'a' : `controller.${qp}`];
1210
let elem = document.querySelector(`[data-${qp}="${qpVal}"]`);
1311

1412
if (elem && elem.offsetHeight) {

0 commit comments

Comments
 (0)