Merge branch 'ticket_7883' of https://github.com/rwldrn/jquery into rwldrn-ticket_7883

This commit is contained in:
Dave Methvin 2011-04-05 21:42:58 -04:00
commit b5c7c507c1
2 changed files with 45 additions and 1 deletions

View file

@ -1027,10 +1027,15 @@ jQuery.each(["live", "die"], function( i, name ) {
return this;
}
if ( jQuery.isFunction( data ) ) {
if ( jQuery.isFunction( data ) || data === false ) {
fn = data;
data = undefined;
}
if ( fn === false ) {
fn = returnFalse;
}
types = (types || "").split(" ");