Modify ↓
Ticket #5642 (closed bug: wontfix)
jQuery 1.4a1 bind is not backward compatible
| Reported by: | nikita.frolov | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | event | Version: | 1.4a1 |
| Keywords: | jquery 1.4, bind, data | Cc: | |
| Blocking: | Blocked by: |
Description
Data of type function provided to bind is missing.
Reproduce code:
var fn = function () { alert('a'); };
$('body').bind('magic', fn, function (event) {
event.data.call();
});
$('body').trigger('magic');
Expected result:
alert a
Actual result:
error: event.data is undefined
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.

The current behaviour is what will be used going forward.