Bug Tracker

Modify

Ticket #5642 (closed bug: wontfix)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to wontfix

The current behaviour is what will be used going forward.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.