git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Found a better detect for deleting an expando, added back in removeAttribute as it...
[jquery.git]
/
src
/
data.js
diff --git
a/src/data.js
b/src/data.js
index
0e243ca
..
b9986f5
100644
(file)
--- a/
src/data.js
+++ b/
src/data.js
@@
-80,7
+80,10
@@
jQuery.extend({
// Otherwise, we want to remove all of the element's data
} else {
if ( jQuery.support.deleteExpando ) {
// 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
}
// Completely remove the data cache