Css: Fix the reliableMarginRight test in oldIE.

This fixes an error introduced by the previous commit.
parent 4cbb1a00
...@@ -107,7 +107,11 @@ define([ ...@@ -107,7 +107,11 @@ define([
}, },
reliableMarginRight: function() { 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. // Use window.getComputedStyle because jsdom on node.js will break without it.
if ( window.getComputedStyle ) { if ( window.getComputedStyle ) {
...@@ -136,9 +140,9 @@ define([ ...@@ -136,9 +140,9 @@ define([
!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
body.removeChild( container ); body.removeChild( container );
return reliableMarginRightVal;
} }
return reliableMarginRightVal;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment