
static.js.vendor.modernizr.src.domToCSS.js Maven / Gradle / Ivy
The newest version!
define(function() {
/**
* domToCSS takes a camelCase string and converts it to kebab-case
* e.g. boxSizing -> box-sizing
*
* @access private
* @function domToCSS
* @param {string} name - String name of camelCase prop we want to convert
* @returns {string} The kebab-case version of the supplied name
*/
function domToCSS(name) {
return name.replace(/([A-Z])/g, function(str, m1) {
return '-' + m1.toLowerCase();
}).replace(/^ms-/, '-ms-');
}
return domToCSS;
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy