Skip to main content

Bug Tracker

Side navigation

#5642 closed bug (wontfix)

Opened December 11, 2009 02:49PM UTC

Closed November 19, 2010 08:25AM UTC

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

Attachments (0)
Change History (1)

Changed November 19, 2010 08:25AM UTC by snover comment:1

resolution: → wontfix
status: newclosed

The current behaviour is what will be used going forward.