This sounds weird.

Is your extension available online?
Could I check it on my machine?

Honza

On Thursday, August 8, 2013 9:08:37 AM UTC+2, [email protected] wrote:
>
> Hi,
> Sorry for late reply. Was stuck in some other tasks.
> Today I again took a look at the problem but it seems *`initializeNode*` 
> and *`show`* methods have different instance of *`this.panelNode`*.
> Here is the code:
>
> *initializeNode: function(){
>      Firebug.Panel.initializeNode.apply(this, arguments);
>      // Take backup for oldPanelNode   
>      this.oldPanelNode = this.panelNode;
> **     // Add event on `this.panelNode`
>      Events.addEventListener(this.panelNode, "click", this.onPanelClick, 
> false); 
> },
> show: function(){
>      // It results `false` => should be `true`
>      FBTrace.sysout("Check for panelNode : " + (this.oldPanelNode === 
> this.panelNode)); 
> },
> onPanelClick: function(){*
> *     // code
> }
> *
> I couldn't figure it out.
> Thanks in advanced.
>
> Thanks,
> Jaynti
>
> On Friday, August 2, 2013 4:40:49 PM UTC+5:30, Sebastian Zartner wrote:
>>
>> 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/6c9d3f2e-d765-419a-af8f-c2f9b1cdb5c0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to