Make sure that undefined is always returned for undefined data properties. Fixes #6166.
This commit is contained in:
parent
7f5179b654
commit
9e06903a99
2 changed files with 17 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue