From be78a418922f1cbdee15f85a8a80121818da6be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Mon, 2 May 2016 11:22:55 -0700 Subject: [PATCH] Revert "Merge pull request #6458 from mondaychen/master" This reverts commit 25481083b0138fe052fcd00c591dc5e10e0a64d6, reversing changes made to 09022b165f7fdec4a1aaf6475936629aab76e4a9. --- src/renderers/dom/shared/dangerousStyleValue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/dom/shared/dangerousStyleValue.js b/src/renderers/dom/shared/dangerousStyleValue.js index f0ed355178eeb..8aa2e49607fa1 100644 --- a/src/renderers/dom/shared/dangerousStyleValue.js +++ b/src/renderers/dom/shared/dangerousStyleValue.js @@ -44,7 +44,7 @@ function dangerousStyleValue(name, value, component) { } var isNonNumeric = isNaN(value); - if (isNonNumeric || value === 0 || value === '0' || + if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) { return '' + value; // cast to string }