aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-13 06:57:58 -0500
committerjeresig <jeresig@gmail.com>2010-02-13 06:57:58 -0500
commita6f3757d50f8be021505f4f7fa7201199e8b7f2d (patch)
tree295d594132dfbeeedfef504bf525dfd596139b0b /src/data.js
parent9195107dbb13ad34ae4e9f7cb1df5d79e4748560 (diff)
downloadjquery-a6f3757d50f8be021505f4f7fa7201199e8b7f2d.tar.gz
jquery-a6f3757d50f8be021505f4f7fa7201199e8b7f2d.zip
Found a better detect for deleting an expando, added back in removeAttribute as it does work in IE.
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index 0e243ca61..b9986f58d 100644
--- 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 ) {
- delete elem[ expando ];
+ delete elem[ jQuery.expando ];
+
+ } else if ( elem.removeAttribute ) {
+ elem.removeAttribute( jQuery.expando );
}
// Completely remove the data cache