Project

General

Profile

Actions

Bug #757

closed

JSignal1.createCall - Unexpected behaviour

Added by Thim Anneessens almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Pieter Libin
Category:
-
Target version:
Start date:
03/15/2011
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

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

Actions #2

Updated by Pieter Libin over 13 years ago

  • Status changed from InProgress to Resolved

fixed in the latest git

Actions #3

Updated by Koen Deforche over 13 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.1.10
Actions

Also available in: Atom PDF