Skip to content

Commit 1d2ec22

Browse files
committed
breaking another cycle
1 parent 49c0436 commit 1d2ec22

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

packages/@ember/-internals/glimmer/lib/components/link-to.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type Route from '@ember/routing/route';
22
import type { RouterState, RoutingService } from '@ember/routing/-internals';
33
import { isSimpleClick } from '@ember/-internals/views';
44
import { assert, debugFreeze, inspect, warn } from '@ember/debug';
5-
import { getEngineParent } from '@ember/engine';
6-
import EngineInstance from '@ember/engine/instance';
5+
import { getEngineParent } from '@ember/engine/parent';
6+
import type EngineInstance from '@ember/engine/instance';
77
import { flaggedInstrument } from '@ember/instrumentation';
88
import { action } from '@ember/object';
99
import { service } from '@ember/service';
@@ -494,13 +494,13 @@ class _LinkTo extends InternalComponent {
494494
}
495495

496496
private get isEngine(): boolean {
497-
let owner = this.owner;
498-
return owner instanceof EngineInstance && getEngineParent(owner) !== undefined;
497+
let owner = this.owner as EngineInstance;
498+
return getEngineParent(owner) !== undefined;
499499
}
500500

501501
private get engineMountPoint(): string | undefined {
502-
let owner = this.owner;
503-
return owner instanceof EngineInstance ? owner.mountPoint : undefined;
502+
let owner = this.owner as EngineInstance;
503+
return owner.mountPoint;
504504
}
505505

506506
private classFor(state: 'active' | 'loading' | 'disabled'): string {

packages/@ember/engine/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { getEngineParent, setEngineParent } from './lib/engine-parent';
1+
export { getEngineParent, setEngineParent } from './parent';
22

33
import { canInvoke } from '@ember/-internals/utils';
44
import Controller from '@ember/controller';

packages/@ember/engine/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { RSVP } from '@ember/-internals/runtime';
77
import { assert } from '@ember/debug';
88
import { Registry, privatize as P } from '@ember/-internals/container';
99
import { guidFor } from '@ember/-internals/utils';
10-
import { ENGINE_PARENT, getEngineParent, setEngineParent } from './lib/engine-parent';
10+
import { ENGINE_PARENT, getEngineParent, setEngineParent } from './parent';
1111
import { ContainerProxyMixin, RegistryProxyMixin } from '@ember/-internals/runtime';
1212
import type { InternalOwner } from '@ember/-internals/owner';
1313
import type Owner from '@ember/-internals/owner';

packages/@ember/engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"type": "module",
55
"exports": {
66
".": "./index.ts",
7-
"./instance": "./instance.ts"
7+
"./instance": "./instance.ts",
8+
"./parent": "./parent.ts"
89
},
910
"dependencies": {
1011
"@ember/-internals": "workspace:*",

packages/@ember/engine/lib/engine-parent.ts renamed to packages/@ember/engine/parent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
@module @ember/engine
33
*/
4-
import type EngineInstance from '../instance';
4+
import type EngineInstance from './instance';
55

66
export const ENGINE_PARENT = Symbol('ENGINE_PARENT');
77

0 commit comments

Comments
 (0)