MCPcopy
hub / github.com/angular-ui/ui-router / camelCase

Function camelCase

test/angular/1.2/angular.js:2247–2253  ·  view source on GitHub ↗

* Converts snake_case to camelCase. * Also there is special case for Moz prefix starting with upper case letter. * @param name Name to normalize

(name)

Source from the content-addressed store, hash-verified

2245 * @param name Name to normalize
2246 */
2247function camelCase(name) {
2248 return name.
2249 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2250 return offset ? letter.toUpperCase() : letter;
2251 }).
2252 replace(MOZ_HACK_REGEXP, 'Moz$1');
2253}
2254
2255/////////////////////////////////////////////
2256// jQuery mutation patch

Callers 3

angular.jsFile · 0.70
directiveNormalizeFunction · 0.70
$SceProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected