Opened 16 years ago
Closed 16 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 )
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 16 years ago by
need: | → Review |
---|
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Milestone: | → 1.1.4 |
Resolution: | → wontfix |
Status: | new → closed |
Version: | → 1.1.3 |
I agree with Brandon - the current solution is feasible.
Note: See
TracTickets for help on using
tickets.
But since jQuery already passes the context properly is currentTarget really needed?