Simplify unhyphenating CSS properties

print-window-tiddler
Jeremy Ruston 2012-10-25 14:57:48 +01:00
rodzic e063ec6b1a
commit cbfc96cabd
1 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -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;
}
};
/*