mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-25 03:20:49 -08:00
Simplify unhyphenating CSS properties
This commit is contained in:
parent
e063ec6b1a
commit
cbfc96cabd
1 changed files with 3 additions and 7 deletions
|
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue