Bug Tracker

Opened 10 years ago

Closed 9 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

Change History (1)

comment:1 Changed 9 years ago by snover

Resolution: wontfix
Status: newclosed

The current behaviour is what will be used going forward.

Note: See TracTickets for help on using tickets.