@samitouri / QOS-React-2 / commits / d9915db43b

Deleting a specific style name float for ie8 (#9311)

* Deleting a specific style name float for ie8 * Remove unnecessary condition

Andrey Marchenko committed Apr 1, 2017 at 01:31 UTC d9915db43bcb9683fc5658d15c98f2b2065bd502
1 file changed +2 -7
src/renderers/dom/shared/CSSPropertyOperations.js
+2 -7
@@ -30,7 +30,6 @@ var processStyleName = memoizeStringOnly(function(styleName) {
30 });
31
32 var hasShorthandPropertyBug = false;
33 -var styleFloatAccessor = 'cssFloat';
33 if (ExecutionEnvironment.canUseDOM) {
34 var tempStyle = document.createElement('div').style;
35 try {
@@ -39,10 +38,6 @@ if (ExecutionEnvironment.canUseDOM) {
38 } catch (e) {
39 hasShorthandPropertyBug = true;
40 }
42 - // IE8 only supports accessing cssFloat (standard) as styleFloat
43 - if (document.documentElement.style.cssFloat === undefined) {
44 - styleFloatAccessor = 'styleFloat';
45 - }
41 }
42
43 if (__DEV__) {
@@ -215,8 +210,8 @@ var CSSPropertyOperations = {
210 styles[styleName],
211 component,
212 );
218 - if (styleName === 'float' || styleName === 'cssFloat') {
219 - styleName = styleFloatAccessor;
213 + if (styleName === 'float') {
214 + styleName = 'cssFloat';
215 }
216 if (styleValue) {
217 style[styleName] = styleValue;