mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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:
committed by
Timmy Willison
parent
57652eecd9
commit
9d1d90e7a2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user