ES5 → 7: Use function default parameters
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user