@@ -1043,7 +1043,11 @@ export class Graph {
1043
1043
const doSub = ( ) => {
1044
1044
sub = ( nd as GraphNode ) . __subscribe ( onEvent , key , subInput , target as string , bound ) ;
1045
1045
1046
- if ( target && this . get ( target as string ) && this . get ( target as string ) . __listeners [ bound ] )
1046
+ if ( target && this . get ( target as string ) && this . get ( target as string ) . __listeners [ bound ] ) {
1047
+ if ( typeof this . get ( target as string ) . __listeners [ bound ] !== 'object' ) {
1048
+ this . get ( target as string ) . __listeners [ bound ] = this . get ( target as string ) . __node . state . getEvent ( bound ) ;
1049
+ }
1050
+ }
1047
1051
this . get ( target as string ) . __listeners [ bound ] . sub = sub ;
1048
1052
1049
1053
let ondelete = ( ) => {
@@ -1078,6 +1082,9 @@ export class Graph {
1078
1082
sub = node . __subscribe ( ( onEvent as GraphNode ) . __operator , key , subInput , target as string , bound ) ;
1079
1083
1080
1084
if ( target && this . get ( target as string ) && this . get ( target as string ) . __listeners [ bound ] ) {
1085
+ if ( typeof this . get ( target as string ) . __listeners [ bound ] !== 'object' ) {
1086
+ this . get ( target as string ) . __listeners [ bound ] = this . get ( target as string ) . __node . state . getEvent ( bound ) ;
1087
+ }
1081
1088
this . get ( target as string ) . __listeners [ bound ] . sub = sub ;
1082
1089
}
1083
1090
@@ -1102,8 +1109,12 @@ export class Graph {
1102
1109
const doSub = ( ) => {
1103
1110
sub = node . __subscribe ( onEvent , key , subInput , target as string , bound ) ;
1104
1111
1105
- if ( target && this . get ( target as string ) && this . get ( target as string ) . __listeners [ bound ] )
1112
+ if ( target && this . get ( target as string ) && this . get ( target as string ) . __listeners [ bound ] ) {
1113
+ if ( typeof this . get ( target as string ) . __listeners [ bound ] !== 'object' ) {
1114
+ this . get ( target as string ) . __listeners [ bound ] = this . get ( target as string ) . __node . state . getEvent ( bound ) ;
1115
+ }
1106
1116
this . get ( target as string ) . __listeners [ bound ] . sub = sub ;
1117
+ }
1107
1118
1108
1119
1109
1120
let ondelete = ( ) => {
0 commit comments