Hello Jeremy,

I'm adding the group again to the email chain, hope you don't mind.

thing to do is to trace the logic through -- is the widget that is
generating the event in fact doing so? Perhaps that widget is only properly
initialised after a refresh cycle, which it's currently never going to get.

That makes sense. The contained widgets are buttons, I don't know if they
need a refresh to be properly initialized. I guess no since some buttons
works and other does not. The ones that works are those that sends messages
that are not being intercepted by my widget, like tm-perform-import

There is a couple of radio buttons also, and maybe they will need a
refresh, but this is a minor issue since there are a couple of console.log
inside the message handlers and are not being executed.

Here you have an example of how the widget is used:

https://github.com/danielo515/import-tools/blob/master/plugins/import-tools/%24__core_ui_ViewTemplate_import.tid

2014-10-30 19:54 GMT+01:00 Jeremy Ruston <[email protected]>:

> Hi Danielo
>
>> My widget does not accept any parameter, it just reacts to messages. It
>> worked on TW 5.0.14, so I don't understand why it does not work on the
>> current version.
>>
> Perhaps the widgets contained within the uncheck widget have changed
> somehow? Your widget is only going to receive messages from the widgets it
> contains, so if your widget isn't receiving messages I guess the thing to
> do is to trace the logic through -- is the widget that is generating the
> event in fact doing so? Perhaps that widget is only properly initialised
> after a refresh cycle, which it's currently never going to get.
>
> Best wishes
>
> Jeremy.
>
>
>
>>  El 30/10/2014 16:00, "Jeremy Ruston" <[email protected]> escribió:
>>
>> Hi Danielo
>>>
>>> If the child widgets are buttons, will that prevent them to send
>>>> messages?
>>>>
>>>
>>> No, it won't. But it would mean that transcluded attributes would not be
>>> refreshed, so <$button to={{myTiddler}}> wouldn't send the up to date value
>>> for the tiddler.
>>>
>>> If your widget has attributes then you need to provide a refresh handler
>>> to respond to changes in the values of those attributes.
>>>
>>> Best wishes
>>>
>>> Jeremy.
>>>
>>>
>>>
>>>>
>>>> El jueves, 30 de octubre de 2014 14:37:55 UTC+1, Jeremy Ruston escribió:
>>>>>
>>>>> Hi Danielo
>>>>>
>>>>> I don't see anything obviously wrong with the widget (apart from the
>>>>> lack of refresh handling, which will prevent any child widgets from
>>>>> refreshing correctly). Perhaps a spelling error or typo somewhere else?
>>>>>
>>>>> Best wishes
>>>>>
>>>>> Jeremy
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Oct 30, 2014 at 9:25 AM, Danielo Rodríguez <[email protected]>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> In the periple of updating all my plugins to the latest version of TW
>>>>>> I found a problem I can not understand.
>>>>>>
>>>>>> The below widget is not listening to any of its events. Any of the
>>>>>> console.log is being executed, not even the one inside the execute
>>>>>> function. This is very weird and I don't understand why. The children of
>>>>>> this widget is beign rendered, soo it is getting executed in some way.
>>>>>>
>>>>>> https://github.com/danielo515/import-tools/blob/master/
>>>>>> plugins/import-tools/uncheck.js
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "TiddlyWikiDev" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>> Visit this group at http://groups.google.com/group/tiddlywikidev.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jeremy Ruston
>>>>> mailto:[email protected]
>>>>>
>>>>
>>>
>>>
>>> --
>>> Jeremy Ruston
>>> mailto:[email protected]
>>>
>>
>
>
> --
> Jeremy Ruston
> mailto:[email protected]
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to