File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Conduit {
1818 getInlet = ( ) => this . inlet ;
1919 getOutlet = ( ) => this . outlet ;
2020 update = ( ) => this . outlet . forceRender ( ) ;
21- simplify = ( ) => ( { inlet : this . inlet , outlet : this . outlet } ) ;
21+ members = ( ) => ( { inlet : this . inlet , outlet : this . outlet } ) ;
2222 toString = ( ) => `${ this . getId ( ) } : ${ this . inlet . getLabel ( ) } -> ${ this . outlet . getLabel ( ) } ` ;
2323}
2424
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ export class Inlet extends Component {
3030 getIndex = ( ) => this . props . index ;
3131 getChildren = ( ) => this . props . children ;
3232 onDisconnect = conduit => {
33- this . props . onDisconnect ( conduit . simplify ( ) ) ;
33+ this . props . onDisconnect ( conduit . members ( ) ) ;
3434 } ;
3535 onConnect = conduit => {
36- this . props . onConnect ( conduit . simplify ( ) ) ;
36+ this . props . onConnect ( conduit . members ( ) ) ;
3737 } ;
3838
3939 render ( ) {
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ class Outlet extends Component {
3030 getId = ( ) => this . id ;
3131 getLabel = ( ) => this . props . label ;
3232 onDisconnect = conduit => {
33- this . props . onDisconnect ( conduit . simplify ( ) ) ;
33+ this . props . onDisconnect ( conduit . members ( ) ) ;
3434 } ;
3535 onConnect = conduit => {
36- this . props . onConnect ( conduit . simplify ( ) ) ;
36+ this . props . onConnect ( conduit . members ( ) ) ;
3737 } ;
3838 forceRender = ( ) => this . setState ( { children : this . getChildren ( ) } ) ;
3939
You can’t perform that action at this time.
0 commit comments