Modify ↓
Ticket #9802 (closed bug: wontfix)
preventDefault and stopPropagation should return event
| Reported by: | cwolves@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | event | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Not -exactly- a bug, but I think stopPropagation, preventDefault and stopImmediatePropagation should all return the event object to be inline with everything else in jQuery:
ev.stopPropagation().preventDefault();
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This change does not match the spec used to define how the jQuery.Event constructor creates even objects.
http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html