Found a better detect for deleting an expando, added back in removeAttribute as it does work in IE.
This commit is contained in:
parent
9195107dbb
commit
a6f3757d50
3 changed files with 17 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue