No it did not.

... but found a hack that works, namely binding a script, at creation, to
stop propagation directly at the browser level:

Trash_Div.On_Click_Handler (App.Controller.On_Click_Trash_Clip'Access);

Trash_Div.Bind_Event_Script (Event  => "click",
                                           Script => "e.stopPropagation()");

Thx.


On Mon, Nov 30, 2015 at 11:16 PM, Rabbi David Botton <da...@botton.com>
wrote:

> It is caused by javascript event bubbling, try the following in the event
> handler and let me know if this solves your issue:
>
> Gnoga.Server.Connection.Execute_Script
>         (ID     => Object.Connection_ID,
>          Script => "e.stopPropagation()");
>
> David Botton
>
>
> On Sun, Nov 29, 2015 at 4:58 PM Olivier Henley <olivier.hen...@gmail.com>
> wrote:
>
>> Hi!
>>
>> I have a widget that has a little X in the top right corner to remove
>> itself.
>>
>> I have two On_Click_Handler set; one for the widget (starts some music)
>> and one for the little X. Now the little X overlap the widget at its top
>> right corner, therefore both events are triggered.
>>
>> Is it possible to remove one handler from execution code inside the
>> other, block it or something. How would you do it?
>>
>> Thx!
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gnoga-list mailing list
>> Gnoga-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>>
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to