Bug Tracker

Opened 13 years ago

Closed 13 years ago

#888 closed enhancement (wontfix)

Pass the current element to the event fixer

Reported by: yehuda Owned by:
Priority: minor Milestone: 1.1.4
Component: event Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by john)

The W3C spec has a currentTarget property on "e" that is effectively the same as the "this" variable inside jQuery event handlers. All browsers support it, except IE.

The event fixer creates the currentTarget property if it doesn't exist, but it currently overrides the handler to pass "this" in as a second param. It would be nice if jQuery did that by default (for a cost of 5 bytes)

Change History (2)

comment:1 Changed 13 years ago by brandon

need: Review

But since jQuery already passes the context properly is currentTarget really needed?

comment:2 Changed 13 years ago by john

Description: modified (diff)
Milestone: 1.1.4
Resolution: wontfix
Status: newclosed
Version: 1.1.3

I agree with Brandon - the current solution is feasible.

Note: See TracTickets for help on using tickets.