Ticket #7229 (closed bug: fixed)
1.4.3 regression - passing null to event handler
| Reported by: | matt.parlane@… | Owned by: | rwaldron |
|---|---|---|---|
| Priority: | high | Milestone: | 1.4.4 |
| Component: | event | Version: | 1.4.3 |
| Keywords: | Cc: | jdalton | |
| Blocking: | Blocked by: |
Description
in 1.4.2, this works:
$('body').click(null);
but in 1.4.3, it gives a "handler is null" in the jQuery.event.add function.
It can be worked around in code of course, but I figured you'd want a point release to be backwards-compatible.
Change History
comment:2 Changed 3 years ago by rwaldron
- Priority changed from undecided to high
- Status changed from new to open
- Component changed from unfiled to event
Confirmed.
comment:3 Changed 3 years ago by rwaldron
- Owner set to rwaldron
- Status changed from open to assigned
comment:5 Changed 3 years ago by rwaldron
Update to 7229 based on input from jdalton and jeresig
http://github.com/jquery/jquery/pull/67
http://github.com/rwldrn/jquery/commit/7ded8f00fa65c6f8edb19b4c8f118f412a700c48
comment:7 Changed 3 years ago by rwaldron
- Cc jdalton added
Disregard previous pull requests.
http://github.com/jquery/jquery/pull/71
Reflects outcome of suggested handler evaluation by jdalton
comment:9 Changed 3 years ago by john
- Status changed from assigned to closed
- Resolution set to fixed
- Milestone changed from 1.next to 1.4.4
comment:10 Changed 3 years ago by matt.parlane@…
Thanks all, very cool.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
