aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-01-26 02:49:05 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-01-26 02:49:05 +0100
commitf4970c03903b4ed24023665d8dda61d8ea2c7567 (patch)
treeec8713fb3b3365a5af975bcab16f5ebd6f276edf
parent4cbb1a0063d06ddece8982b868298e90aefa2d08 (diff)
downloadjquery-f4970c03903b4ed24023665d8dda61d8ea2c7567.tar.gz
jquery-f4970c03903b4ed24023665d8dda61d8ea2c7567.zip
Css: Fix the reliableMarginRight test in oldIE.
This fixes an error introduced by the previous commit.
-rw-r--r--src/css/support.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/css/support.js b/src/css/support.js
index a3af1a204..18d900733 100644
--- a/src/css/support.js
+++ b/src/css/support.js
@@ -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,9 +140,9 @@ define([
!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
body.removeChild( container );
-
- return reliableMarginRightVal;
}
+
+ return reliableMarginRightVal;
}
});