Ignore EventHandlers members not starting by "on"
This commit is contained in:
parent
789e9c7da8
commit
8771ae2aae
|
@ -7,6 +7,7 @@ PythonBridge {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
for (var func in eventHandlers) {
|
for (var func in eventHandlers) {
|
||||||
if (! eventHandlers.hasOwnProperty(func)) continue
|
if (! eventHandlers.hasOwnProperty(func)) continue
|
||||||
|
if (! func.startsWith("on")) continue
|
||||||
setHandler(func.replace(/^on/, ""), eventHandlers[func])
|
setHandler(func.replace(/^on/, ""), eventHandlers[func])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user