mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
Simplify unhyphenating CSS properties
This commit is contained in:
parent
e063ec6b1a
commit
cbfc96cabd
@ -273,13 +273,9 @@ exports.nextTick = function(fn) {
|
|||||||
Convert a hyphenated CSS property name into a camel case one
|
Convert a hyphenated CSS property name into a camel case one
|
||||||
*/
|
*/
|
||||||
exports.unHyphenateCss = function(propName) {
|
exports.unHyphenateCss = function(propName) {
|
||||||
if($tw.browser.unHyphenateCss) {
|
return propName.replace(/-([a-z])/gi, function(match0,match1) {
|
||||||
return propName.replace(/-([a-z])/gi, function(match0,match1) {
|
return match1.toUpperCase();
|
||||||
return match1.toUpperCase();
|
});
|
||||||
});
|
|
||||||
} else {
|
|
||||||
return propName;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user