mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Make sure that undefined is always returned for undefined data properties. Fixes #6166.
This commit is contained in:
@@ -25,7 +25,7 @@ jQuery.extend({
|
||||
var id = elem[ expando ], cache = jQuery.cache, thisCache;
|
||||
|
||||
if ( !id && typeof name === "string" && data === undefined ) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
// Compute a unique ID for the element
|
||||
|
||||
Reference in New Issue
Block a user