(key, getObject, children)
| 4 | |
| 5 | class Layout { |
| 6 | constructor(key, getObject, children) { |
| 7 | this.key = key; |
| 8 | this.getObject = getObject; |
| 9 | this.children = children.map(key => this.getObject(key)); |
| 10 | this.weights = children.map(() => 1); |
| 11 | this.ref = React.createRef(); |
| 12 | |
| 13 | this.handleChangeWeights = this.handleChangeWeights.bind(this); |
| 14 | } |
| 15 | |
| 16 | add(key, index = this.children.length) { |
| 17 | const child = this.getObject(key); |
nothing calls this directly
no outgoing calls
no test coverage detected