Please use this.panelNode instead of the panelNode argument as it's done e.g. inside the *HTML* panel code<https://github.com/firebug/firebug/blob/435c026ec101c00405d0954bf1c1a0ddb1e80e6d/extension/content/firebug/css/cssPanel.js#L422>. Does that fix your problem?
Sebastian On Friday, August 2, 2013 9:19:30 AM UTC+2, [email protected] wrote: > > Hi, > I don't know if I am missing important, but I am getting strange problem > with dom events: > > * initializeNode: function(panelNode) { > // Add events > Events.addEventListener(panelNode, "click", this.onPanelFocus, true); > ** > Firebug.Panel.initializeNode.apply(this, arguments); > }, > onPanelFocus: function(event) { > // another code > }* > > With this code: > `*onPanelFocus*` is executing on panel click in side panel. But for main > panel, it is not. > > Thanks, > Jaynti > > > -- You received this message because you are subscribed to the Google Groups "Firebug" 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/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/b04345be-f337-429e-8571-9d8a59333368%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
