mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 08:54:55 -05:00
Fixed an issue with how .data() was expecting output (trigger now returns exact output - or null if none is provided, which was tripping it up).
This commit is contained in:
@@ -482,7 +482,7 @@ jQuery.fn = jQuery.prototype = {
|
||||
if ( data === undefined && this.length )
|
||||
data = jQuery.data( this[0], key );
|
||||
|
||||
return data === undefined && parts[1] ?
|
||||
return data == null && parts[1] ?
|
||||
this.data( parts[0] ) :
|
||||
data;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user