id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blocking,blockedby
1140,bind() incorrectly passes fn as data,arrix,,"If you call $(selector).bind(type, fn), fn will be used as data. So event handlers checking for event.data presence will not works as expected.
e.g.
{{{
function handler(event) {
  if (event.data) {
     //gets executed even if no data was specified for bind()
  } else {
     //no data provided
  }
}
}}}

In event.js,
{{{
bind: function( type, data, fn ) {
		return this.each(function(){
			jQuery.event.add( this, type, fn || data, data );
		});
	},
}}}
The call to jQuery.event.add always passes the 3rd parameter.
",bug,closed,major,1.1.3,event,1.1.2,fixed,event bind data,,,
