ea02ce2316
http://es6-features.org/#PropertyShorthand Instead of doing {"foo": foo, "bar": bar, ...}, we can just do {foo, bar} now. The function parameters of EventHandlers have all been renamed to camelCase to make use of this, as the JS style conventions intend. Other functions will follow in a later commit.
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
// Copyright 2019 miruka
|
|
// This file is part of harmonyqml, licensed under LGPLv3.
|
|
|
|
function onExitRequested(exitCode) {
|
|
Qt.exit(exitCode)
|
|
}
|
|
|
|
function onCoroutineDone(uuid, result) {
|
|
py.pendingCoroutines[uuid](result)
|
|
delete pendingCoroutines[uuid]
|
|
}
|