Skip to content

Commit a2a8cae

Browse files
committed
inline variables
1 parent 4c72bb2 commit a2a8cae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/components/ember-anchor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import getOffset from 'ember-api-docs/utils/get-offset';
66
export default class EmberAnchor extends AnchorComponent {
77
// This overrides Ember Anchor to support scrolling within a fixed position element
88
_scrollToElemPosition() {
9-
let qp = this.anchorQueryParam;
10-
let qpVal = this.a;
11-
let elem = document.querySelector(`[data-${qp}="${qpVal}"]`);
9+
let elem = document.querySelector(
10+
`[data-${this.anchorQueryParam}="${this.a}"]`
11+
);
1212

1313
if (elem && elem.offsetHeight) {
1414
const offsetToScroll = getOffset(

0 commit comments

Comments
 (0)