File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable ember/classic-decorator-no-classic-methods */
2
- import { get } from '@ember/object' ;
3
1
import AnchorComponent from 'ember-anchor/components/ember-anchor' ;
4
2
import config from 'ember-api-docs/config/environment' ;
5
3
import getOffset from 'ember-api-docs/utils/get-offset' ;
@@ -8,7 +6,7 @@ export default class EmberAnchor extends AnchorComponent {
8
6
// This overrides Ember Anchor to support scrolling within a fixed position element
9
7
_scrollToElemPosition ( ) {
10
8
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 } ` ] ;
12
10
let elem = document . querySelector ( `[data-${ qp } ="${ qpVal } "]` ) ;
13
11
14
12
if ( elem && elem . offsetHeight ) {
You can’t perform that action at this time.
0 commit comments