ES5 → 7: Use function default parameters

This commit is contained in:
miruka
2019-07-18 03:35:30 -04:00
parent 8f53d2e018
commit 4920ff6212
6 changed files with 27 additions and 27 deletions

View File

@@ -59,8 +59,8 @@ Item {
StackView {
id: pageStack
function showPage(name, properties) {
pageStack.replace("Pages/" + name + ".qml", properties || {})
function showPage(name, properties={}) {
pageStack.replace("Pages/" + name + ".qml", properties)
}
function showRoom(userId, category, roomId) {