From cbfc96cabdd5b90db228e3296d321ebf96fcb555 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 25 Oct 2012 14:57:48 +0100 Subject: [PATCH] Simplify unhyphenating CSS properties --- core/modules/utils/utils.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 24dda3b14..7a9b0fe16 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -273,13 +273,9 @@ exports.nextTick = function(fn) { Convert a hyphenated CSS property name into a camel case one */ exports.unHyphenateCss = function(propName) { - if($tw.browser.unHyphenateCss) { - return propName.replace(/-([a-z])/gi, function(match0,match1) { - return match1.toUpperCase(); - }); - } else { - return propName; - } + return propName.replace(/-([a-z])/gi, function(match0,match1) { + return match1.toUpperCase(); + }); }; /*