Bug Tracker

Modify

Ticket #1401 (closed bug: invalid)

Opened 6 years ago

Last modified 6 years ago

.bind() doesnt pass data objects

Reported by: DD32 Owned by:
Priority: major Milestone: 1.1.4
Component: event Version: 1.1.3
Keywords: bind Cc: DD32
Blocking: Blocked by:

Description

As of 1.1.3 bind() no longer passes additional data to the function as event.data

Test case:  http://dd32.id.au/jQuery/test.php

example:

$('a#test').bind('click', {foo: "bar"}, function(){ 
				if( event.data == undefined ) { 
					alert("Event data Undefined"); 
				} else { 
					alert("event.data.foo:"  + event.data.foo);
				}
			 }
		);

1.1.3 will take the event data undefined route, 1.1.2 will take the event.data.foo route as expected.

Change History

comment:1 Changed 6 years ago by DD32

Mark as bogus; or regression.

Seems function(){} is fine for <1.1.3, however 1.1.3 requires function(event){}

D

comment:2 Changed 6 years ago by john

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

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.