Make sure that undefined is always returned for undefined data properties. Fixes...
[jquery.git] / src / data.js
index b9986f5..a97ac04 100644 (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