You should be able to modify the signal handler from JS like this:
State {
name: "one"
StateChangeScript {
script: {
area.clicked.disconnect( handleOne );
area.clicked.connect( handleTwo );
}
}
But note: if you add a handler to clicked while this event is currently handled, the newly added handler will be called immediatly.
↧