Opened 13 years ago
Closed 12 years ago
#6356 closed bug (invalid)
$.proxy not working within bind
Reported by: | CuAnnan | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | event | Version: | 1.4.2 |
Keywords: | proxy, bind | Cc: | |
Blocked by: | Blocking: |
Description
$(anObject).bind(
'cardMoved', $.proxy(this, 'methodName')
);
In the instance I'm working on, it works fine if it's a standard function like
$(anObject).bind(
'cardMoved', function(){console.log('event fired')
);
but if I use proxy, there's an exception thrown.
Attachments (1)
Change History (3)
Changed 13 years ago by
comment:2 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Thanks for the report, but this is not a jQuery bug. Inside an event handler, this
is bound to the Element, not your object. In the future, please use the jQuery Forum for support requests.
Note: See
TracTickets for help on using
tickets.
See line 106 for sample