Data: use removeAttribute in cleanData to bypass Chrome bug

Related:
https://code.google.com/p/chromium/issues/detail?id=378607

Fixes gh-1664
This commit is contained in:
Jason Bedard
2014-12-10 11:42:00 -05:00
committed by Timmy Willison
parent 57652eecd9
commit 9d1d90e7a2
6 changed files with 37 additions and 41 deletions

View File

@@ -5,15 +5,12 @@ define([
(function() {
var div = document.createElement( "div" );
// Execute the test only if not already executed in another module.
if (support.deleteExpando == null) {
// Support: IE<9
support.deleteExpando = true;
try {
delete div.test;
} catch ( e ) {
support.deleteExpando = false;
}
// Support: IE<9
support.deleteExpando = true;
try {
delete div.test;
} catch ( e ) {
support.deleteExpando = false;
}
// Null elements to avoid leaks in IE.