Re: js/dom and "this" referencing
"rvj" <[email protected]> Tue, 11 May 2010 17:43:17 +0100
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
just from a methods invoked initially from constructor in the binding
which may call other methods using addeventlistener
my dumb approach is just to create a common variable within the binding
constructor
thisbinding=this
and then use thisbinding rather than this instead
.. seems to work ok but just seems strange
I just thought that there might be something like top.this to refer the
bindiing xulelement
thanks anyway
"Boris Zbarsky" <[email protected]> wrote in message
news:[email protected]...
> On 5/11/10 3:50 AM, rvj wrote:
>> In particular, I want to reference the value of "this" associated with
>> an
>> XBL binding after one or more onload events fire
>
> Depends on where your listeners are coming from. Who's calling
> addEventListener?
>
> -Boris