Bug #757
closedJSignal1.createCall - Unexpected behaviour
0%
Description
Hello,
Because of the defered initialization of _dynamic in JSignal1, the createCall method does not return an accured result if no listener has been added yet.
itemSelected=new JSignal1(this,"thumbnailClicked"){};
String call="function(){"+itemSelected.createCall(""3)"}";
// call="function(){}"
itemSelected.addListener(this, listener);
call="function(){"+itemSelected.createCall(""3)"}";
// call=\"function(){Wt.emit('o129','thumbnailClicked',0);}
Kind regards,
Thim.
Updated by Koen Deforche over 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
Hey Thim,
This actually a gotcha that also applies to Wt. The only solution possible would be to force the signal to be connected if createCall() is called. In fact, we could do this without actually exposing it, to keep the current effect of being able to use JSignals for pure client-side connections.
Pieter, this should be fix by not relying on 'isExposedSignal()' in the createUserEventCall(), both in Wt and JWt.
Regards,
koen
Updated by Pieter Libin over 13 years ago
- Status changed from InProgress to Resolved
fixed in the latest git
Updated by Koen Deforche over 13 years ago
- Status changed from Resolved to Closed
- Target version set to 3.1.10