Skip to content

Commit 064b163

Browse files
rc-mzdavidbarral
authored andcommitted
Refactor internal api name
1 parent 859fc0e commit 064b163

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/conduit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/inlet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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() {

src/outlet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)