Bug Tracker

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:



'cardMoved', $.proxy(this, 'methodName')


In the instance I'm working on, it works fine if it's a standard function like


'cardMoved', function(){console.log('event fired')


but if I use proxy, there's an exception thrown.

Attachments (1)

Pile.js (2.7 KB) - added by CuAnnan 13 years ago.
See line 106 for sample

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by CuAnnan

Attachment: Pile.js added

See line 106 for sample

comment:1 Changed 12 years ago by snover

Milestone: 1.4.3

Resetting milestone to future.

comment:2 Changed 12 years ago by snover

Priority: undecided
Resolution: invalid
Status: newclosed

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.