1 define( [], function() {
5 // Matches dashed string for camelizing
6 var rdashAlpha
= /-([a-z])/g;
8 // Used by camelCase as callback to replace()
9 function fcamelCase( all
, letter
) {
10 return letter
.toUpperCase();
13 // Convert dashed to camelCase
14 function camelCase( string
) {
15 return string
.replace( rdashAlpha
, fcamelCase
);