File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export abstract class Component {
18
18
* A symbol that identifies this component, and it also used to selectively
19
19
* grant access to its privileged functions.
20
20
*/
21
- protected _key = Symbol ( uuidv4 ( ) ) ;
21
+ protected readonly _key = Symbol ( uuidv4 ( ) ) ;
22
22
23
23
/**
24
24
* The container of this component. Each component is contained by a
Original file line number Diff line number Diff line change @@ -393,10 +393,7 @@ export abstract class Reactor extends Component {
393
393
}
394
394
} else if ( allowCreatorKey ?? false ) {
395
395
console . log ( "trying to get key......" )
396
- if ( this . _creatorKeyChain . get ( component ) != null ) {
397
- return this . _creatorKeyChain . get ( component ) ;
398
- }
399
- return this . _creatorKeyChain . get ( component . getContainer ( ) ) ;
396
+ return component . getContainer ( ) . _getKey ( component , this . _creatorKeyChain . get ( component . getContainer ( ) ) ) ;
400
397
}
401
398
}
402
399
You can’t perform that action at this time.
0 commit comments