...
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
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
2 matches
Mail list logo