mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Remove callback arg from App.createBuffer
This commit is contained in:
parent
bf76eaa669
commit
e28769216a
1 changed files with 2 additions and 5 deletions
|
@ -224,18 +224,15 @@ export default class App extends Component {
|
||||||
}, callback);
|
}, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
createBuffer(serverID, name, callback) {
|
createBuffer(serverID, name) {
|
||||||
var id = null;
|
var id = null;
|
||||||
this.setState((state) => {
|
this.setState((state) => {
|
||||||
var client = this.clients.get(serverID);
|
var client = this.clients.get(serverID);
|
||||||
var updated;
|
var updated;
|
||||||
[id, updated] = State.createBuffer(state, name, serverID, client);
|
[id, updated] = State.createBuffer(state, name, serverID, client);
|
||||||
return updated;
|
return updated;
|
||||||
}, () => {
|
|
||||||
if (callback) {
|
|
||||||
callback(id);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
switchBuffer(id) {
|
switchBuffer(id) {
|
||||||
|
|
Loading…
Reference in a new issue