Data: Separate data & css/effects camelCase implementations
[jquery.git] / src / css / cssCamelCase.js
blob9b5c328ad08fa7583013692da98a6927b4c92740
1 define( [
2 "../core/camelCase"
3 ], function( camelCase ) {
5 "use strict";
7 // Matches dashed string for camelizing
8 var rmsPrefix = /^-ms-/;
10 // Convert dashed to camelCase, handle vendor prefixes.
11 // Used by the css & effects modules.
12 // Support: IE <=9 - 11+, Edge 12 - 18+
13 // Microsoft forgot to hump their vendor prefix (#9572)
14 function cssCamelCase( string ) {
15 return camelCase( string.replace( rmsPrefix, "ms-" ) );
18 return cssCamelCase;
20 } );