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
// Otherwise, we want to remove all of the element's data
} else {
if ( jQuery.support.deleteExpando ) {
- delete elem[ expando ];
+ delete elem[ jQuery.expando ];
+
+ } else if ( elem.removeAttribute ) {
+ elem.removeAttribute( jQuery.expando );
}
// Completely remove the data cache