Qml Better debugging for token manager

This commit is contained in:
Gioacchino Mazzurco 2017-05-17 15:34:29 +02:00
parent c1c1d5ddb4
commit 97a0e00089

View File

@ -44,7 +44,7 @@ QtObject
console.warn("tokensManager.registerToken(token," +
" callback) Attempt to register same" +
" callback twice for:",
i, token, callback)
i, token, callback.name)
console.trace()
}
}
@ -63,7 +63,7 @@ QtObject
var tokCallback = tokens[token][i]
if (typeof tokCallback == 'function')
{
console.log("event token", token, tokCallback)
console.log("event token", token, tokCallback.name)
tokCallback()
}
}