File tree Expand file tree Collapse file tree 4 files changed +36
-15
lines changed Expand file tree Collapse file tree 4 files changed +36
-15
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,17 @@ export default Component.extend({
22
22
_projectVersion : alias ( '_projectService.version' ) ,
23
23
_results : A ( ) ,
24
24
_focused : false ,
25
- _resultTetherConstraints : [
26
- {
27
- to : 'window' ,
28
- pin : [ 'left' , 'right' ]
29
- }
30
- ] ,
25
+ _resultTetherConstraints : null ,
26
+
27
+ init ( ) {
28
+ this . _resultTetherConstraints = [
29
+ {
30
+ to : 'window' ,
31
+ pin : [ 'left' , 'right' ]
32
+ }
33
+ ] ;
34
+ this . _super ( ...arguments ) ;
35
+ } ,
31
36
32
37
search : task ( function * ( query ) {
33
38
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Component from '@ember/component';
4
4
5
5
export default Component . extend ( {
6
6
// Public API
7
- result : { } ,
7
+ result : null ,
8
8
role : 'option' ,
9
9
groupName : '' ,
10
10
groupPosition : 0 , // Index of this result in the grouped results
@@ -22,5 +22,11 @@ export default Component.extend({
22
22
const { groupName, groupPosition } = this . getProperties ( 'groupName' , 'groupPosition' ) ;
23
23
return groupPosition === 0 ? groupName : '' ;
24
24
} ) ,
25
- isSecondary : gt ( 'groupPosition' , 0 )
25
+ isSecondary : gt ( 'groupPosition' , 0 ) ,
26
+
27
+ init ( ) {
28
+ this . result = { } ;
29
+ this . _super ( ...arguments ) ;
30
+ }
31
+
26
32
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ export default Service.extend({
5
5
showProtected : false ,
6
6
showPrivate : false ,
7
7
showDeprecated : false ,
8
- sideNav : {
9
- showPrivate : false
8
+ sideNav : null ,
9
+
10
+ init ( ) {
11
+ this . sideNav = {
12
+ showPrivate : false
13
+ }
14
+ this . _super ( ...arguments ) ;
10
15
}
11
16
} ) ;
Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ import getCompactVersion from 'ember-api-docs/utils/get-compact-version';
5
5
6
6
export default Service . extend ( {
7
7
8
- availableProjectVersions : {
9
- 'ember' : A ( ) ,
10
- 'ember-data' :A ( )
8
+ availableProjectVersions : null ,
9
+ projectRevMap : null ,
10
+
11
+ init ( ) {
12
+ this . availableProjectVersions = {
13
+ 'ember' : A ( ) ,
14
+ 'ember-data' :A ( )
15
+ } ;
16
+ this . projectRevMap = { } ;
17
+ this . _super ( ...arguments ) ;
11
18
} ,
12
19
13
- projectRevMap : { } ,
14
-
15
20
addToProjectRevMap ( projectVersionKey , projectRevDoc ) {
16
21
let projectRevMap = this . get ( 'projectRevMap' ) ;
17
22
if ( ! isPresent ( projectRevMap [ projectVersionKey ] ) ) {
You can’t perform that action at this time.
0 commit comments