huang
2025-03-14 3450516ed847b35904c1cdda0f0a19b65511e645
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
define( [], function() {
 
"use strict";
 
// Matches dashed string for camelizing
var rmsPrefix = /^-ms-/,
    rdashAlpha = /-([a-z])/g;
 
// Used by camelCase as callback to replace()
function fcamelCase( all, letter ) {
    return letter.toUpperCase();
}
 
// Convert dashed to camelCase; used by the css and data modules
// Support: IE <=9 - 11, Edge 12 - 15
// Microsoft forgot to hump their vendor prefix (#9572)
function camelCase( string ) {
    return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
}
 
return camelCase;
 
} );