Firebug.HTMLModule.addListener ?

26 views
Skip to first unread message

Christian Tölle

unread,
Oct 11, 2012, 11:50:23 PM10/11/12
to fir...@googlegroups.com
Hi,
how can i add a listener to the http tab? I found in the source that it is the onObjectSelected event.


but with that code... it is'nt working..

var listen =
{
  
    onObjectSelected: function(context, node)
    {                                   
          alert("test");
    }
};
 
Firebug.HTMLModule.addListener(listen);


thank you

Jan Honza Odvarko

unread,
Oct 12, 2012, 2:55:59 AM10/12/12
to Firebug
The event is dispatched to 'UI Listeners'

Try following:

Firebug.registerUIListener(listen);

Note that the listener should be registered/unregistered
within your module's initialize/shutdown methods

Honza

Christian Tölle

unread,
Oct 12, 2012, 8:12:22 AM10/12/12
to fir...@googlegroups.com
Hi,

it is working! Thank you..
Reply all
Reply to author
Forward
0 new messages