diff options
Diffstat (limited to 'src/css/cssCamelCase.js')
-rw-r--r-- | src/css/cssCamelCase.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/css/cssCamelCase.js b/src/css/cssCamelCase.js new file mode 100644 index 000000000..9b5c328ad --- /dev/null +++ b/src/css/cssCamelCase.js @@ -0,0 +1,20 @@ +define( [ + "../core/camelCase" +], function( camelCase ) { + +"use strict"; + +// Matches dashed string for camelizing +var rmsPrefix = /^-ms-/; + +// Convert dashed to camelCase, handle vendor prefixes. +// Used by the css & effects modules. +// Support: IE <=9 - 11+, Edge 12 - 18+ +// Microsoft forgot to hump their vendor prefix (#9572) +function cssCamelCase( string ) { + return camelCase( string.replace( rmsPrefix, "ms-" ) ); +} + +return cssCamelCase; + +} ); |