[jQuery] Re: javascript binding event to object method

2007-08-02 Thread ablock
... var this_copy = this; function doBind() { $(...).bind('someevent', function() { this_copy.somemethod()}) } etc., On Aug 2, 4:31 pm, ablock <[EMAIL PROTECTED]> wrote: > I know when using addEventListener to "this" refers to the "owner" > which is in this

[jQuery] javascript binding event to object method

2007-08-02 Thread ablock
I know when using addEventListener to "this" refers to the "owner" which is in this case the HTML element. The JQuery method "bind" seems to act similarly. Is there away to access the object that called the event handler also? Thanks