mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
CSS: Clean up memory leak in reliableMarginRight
Fixes gh-1795
Closes gh-1893
Thanks for the report flexphperia!
(cherry picked from commit 7d15b4d1f1
)
Conflicts:
src/css/support.js
This commit is contained in:
parent
1eedf0e9ea
commit
fa70df692e
@ -120,6 +120,8 @@ define([
|
|||||||
|
|
||||||
reliableMarginRightVal =
|
reliableMarginRightVal =
|
||||||
!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
|
!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
|
||||||
|
|
||||||
|
div.removeChild( contents );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Support: IE8
|
// Support: IE8
|
||||||
|
Loading…
Reference in New Issue
Block a user