Ignore EventHandlers members not starting by "on"

This commit is contained in:
miruka 2020-07-08 17:25:32 -04:00
parent 789e9c7da8
commit 8771ae2aae

View File

@ -7,6 +7,7 @@ PythonBridge {
Component.onCompleted: {
for (var func in eventHandlers) {
if (! eventHandlers.hasOwnProperty(func)) continue
if (! func.startsWith("on")) continue
setHandler(func.replace(/^on/, ""), eventHandlers[func])
}