diff options
author | jeresig <jeresig@gmail.com> | 2010-02-13 06:57:58 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-02-13 06:57:58 -0500 |
commit | a6f3757d50f8be021505f4f7fa7201199e8b7f2d (patch) | |
tree | 295d594132dfbeeedfef504bf525dfd596139b0b /src/data.js | |
parent | 9195107dbb13ad34ae4e9f7cb1df5d79e4748560 (diff) | |
download | jquery-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.js | 5 |
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 |