Make sure that undefined is always returned for undefined data properties. Fixes #6166.

This commit is contained in:
jeresig 2010-02-26 12:35:04 -05:00
parent 7f5179b654
commit 9e06903a99
2 changed files with 17 additions and 7 deletions

View file

@ -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