Hello!
Thanks. It works. :-)
Balage
PS: Thanks to Chris too. ;-)
- Original Message
From: Fritz Zaucker
To: qooxdoo Development
Sent: Tue, December 8, 2009 1:39:57 PM
Subject: Re: [qooxdoo-devel] Refering member function
Try
// Add an event listener
console.log
Hi Balage,
Your problem is this line:
button1.addListener("execute", this.__handleButton );
If the handler is called, "this" point to the button1 instance. To set
"this" to an other scope, use the third parameter. In your case:
button1.addListener("execute", this.__handleButton, this);
Cheers,
Try
// Add an event listener
console.log( 'HandlerDef: '+this.__handleButton );
button1.addListener("execute", this.__handleButton, this );
^^^
On Tue, 8 Dec 2009, balage42-qoox...@yahoo.com wrote:
>
> Hello!
>
> I t
Hello!
I try to use a member function as a callback for my P2P Ajax function. However,
the function is always "undefined". Here is the relevant code of my application:
--8<---
main : function()
{
[...]
// Create a butt