Actions
Bug #1157
closed
BN
KD
JSignal does not trigger JSlot
Bug #1157:
JSignal does not trigger JSlot
Start date:
02/05/2012
Due date:
% Done:
0%
Estimated time:
Description
Hello!
I created JSignal and JSlot, and connected them.
JSignal is emitted by setTimeout.
But JSlot seems not to be triggered (no alert message).
See attachment
Files
KD Updated by Koen Deforche almost 15 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
- Target version set to 3.2.1
Hey,
It seems you didn't connect the signal to the slot ?
Regards,
koen
BN Updated by Boris Nagaev almost 15 years ago
KD Updated by Koen Deforche over 14 years ago
Hey,
The order is important though: signal.createCall() will create a string that includes the relevant JavaScript code, including that of slots connected.
So you need to swap the two statements, like this:
Regards,
koen
KD Updated by Koen Deforche over 14 years ago
- Status changed from Feedback to Resolved
BN Updated by Boris Nagaev over 14 years ago
Hello!
Thank you!
Could you clarify this in the documentation of JSignal::connect(JSlot) and JSignal::connect(string of function) and probably of EventSignal, please ?
BR.
KD Updated by Koen Deforche over 14 years ago
- Status changed from Resolved to Closed
Fixed in 3.2.1
Actions