Opened 13 years ago
Closed 12 years ago
#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: | |
Blocked by: | Blocking: |
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
Note: See
TracTickets for help on using
tickets.
The current behaviour is what will be used going forward.