Ouch.. good to know.
thron7 wrote:
>
> Matthew Gregory wrote:
>> There are a few solutions, can you show your code?
>>
>> If you are using rpc with event handlers, when you add your listener
>> pass 'this' (without quotes) as the third parameter.
>>
>> Otherwise you might have to do something like this:
>>
>> var self = this;
>>
>
> Guys, never use "self" to alias "this", it is a pre-defined var in
> Mozilla, pointing to the window object. By using "var self" you are
> shadowing this meaning. Use "var that" or "var foo" for the same purpose.
>
> T.
>
>> foo(... function()
>> {
>> // in your callback function use self instead of this
>> self.getTableModel();
>> });
>>
>> HTH,
>> Matt
>>
>>
>> Michael Ochs wrote:
>>
>>> Hi,
>>>
>>> I'm trying to load a callback function (after rcp request) and make a
>>> new table model in this callback function. This table model is stored
>>> in this.tableModel but I noticed, that in this case the reference of
>>> this points to Window whereas everywhere else this points to
>>> frontend.Application How do I get to the frontend.Application object
>>> in the callback functions?
>>>
>>> Thanks for your help,
>>> Michael
>>>
>>> ------------------------------------------------------------------------------
>>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel