File tree Expand file tree Collapse file tree 2 files changed +33
-32
lines changed Expand file tree Collapse file tree 2 files changed +33
-32
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ @module @ember /engine
3
+ */
4
+ import type EngineInstance from './instance' ;
5
+
6
+ export const ENGINE_PARENT = Symbol ( 'ENGINE_PARENT' ) ;
7
+
8
+ /**
9
+ `getEngineParent` retrieves an engine instance's parent instance.
10
+
11
+ @method getEngineParent
12
+ @param {EngineInstance } engine An engine instance.
13
+ @return {EngineInstance } The parent engine instance.
14
+ @for @ember /engine
15
+ @static
16
+ @private
17
+ */
18
+ export function getEngineParent ( engine : EngineInstance ) : EngineInstance | undefined {
19
+ return engine [ ENGINE_PARENT ] ;
20
+ }
21
+
22
+ /**
23
+ `setEngineParent` sets an engine instance's parent instance.
24
+
25
+ @method setEngineParent
26
+ @param {EngineInstance } engine An engine instance.
27
+ @param {EngineInstance } parent The parent engine instance.
28
+ @private
29
+ */
30
+ export function setEngineParent ( engine : EngineInstance , parent : EngineInstance ) : void {
31
+ engine [ ENGINE_PARENT ] = parent ;
32
+ }
Original file line number Diff line number Diff line change 1
- /**
2
- @module @ember /engine
3
- */
4
- import type EngineInstance from './instance' ;
5
-
6
- export const ENGINE_PARENT = Symbol ( 'ENGINE_PARENT' ) ;
7
-
8
- /**
9
- `getEngineParent` retrieves an engine instance's parent instance.
10
-
11
- @method getEngineParent
12
- @param {EngineInstance } engine An engine instance.
13
- @return {EngineInstance } The parent engine instance.
14
- @for @ember /engine
15
- @static
16
- @private
17
- */
18
- export function getEngineParent ( engine : EngineInstance ) : EngineInstance | undefined {
19
- return engine [ ENGINE_PARENT ] ;
20
- }
21
-
22
- /**
23
- `setEngineParent` sets an engine instance's parent instance.
24
-
25
- @method setEngineParent
26
- @param {EngineInstance } engine An engine instance.
27
- @param {EngineInstance } parent The parent engine instance.
28
- @private
29
- */
30
- export function setEngineParent ( engine : EngineInstance , parent : EngineInstance ) : void {
31
- engine [ ENGINE_PARENT ] = parent ;
32
- }
1
+ export * from './lib/engine-parent' ;
You can’t perform that action at this time.
0 commit comments