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 {
1818 * A symbol that identifies this component, and it also used to selectively
1919 * grant access to its privileged functions.
2020 */
21- protected _key = Symbol ( uuidv4 ( ) ) ;
21+ protected readonly _key = Symbol ( uuidv4 ( ) ) ;
2222
2323 /**
2424 * 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 {
393393 }
394394 } else if ( allowCreatorKey ?? false ) {
395395 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 ( ) ) ) ;
400397 }
401398 }
402399
You can’t perform that action at this time.
0 commit comments