mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Css: Fix the reliableMarginRight test in oldIE.
This fixes an error introduced by the previous commit.
This commit is contained in:
parent
4cbb1a0063
commit
f4970c0390
@ -107,7 +107,11 @@ define([
|
||||
},
|
||||
|
||||
reliableMarginRight: function() {
|
||||
var body, container, div, marginDiv, reliableMarginRightVal;
|
||||
var body, container, div, marginDiv,
|
||||
// Support: IE<9.
|
||||
// IE should pass the test but we're using getComputedStyle
|
||||
// to compute it so just return true if the method is not present.
|
||||
reliableMarginRightVal = true;
|
||||
|
||||
// Use window.getComputedStyle because jsdom on node.js will break without it.
|
||||
if ( window.getComputedStyle ) {
|
||||
@ -136,10 +140,10 @@ define([
|
||||
!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
|
||||
|
||||
body.removeChild( container );
|
||||
}
|
||||
|
||||
return reliableMarginRightVal;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function computeStyleTests() {
|
||||
|
Loading…
Reference in New Issue
Block a user