(evaluation: Evaluation)
| 87 | } |
| 88 | |
| 89 | unregister(evaluation: Evaluation) { |
| 90 | let ix = this.evaluations.indexOf(evaluation); |
| 91 | if(ix > -1) { |
| 92 | this.evaluations.splice(ix, 1); |
| 93 | } |
| 94 | if(this.evaluations.length === 0) { |
| 95 | this.client.send(JSON.stringify({type: "result", insert: [], remove: this.index.toTriples()})) |
| 96 | } |
| 97 | } |
| 98 | } |