Bump to v3.1.0.

This commit is contained in:
jdalton
2015-02-01 22:03:53 -08:00
committed by John-David Dalton
parent 3b2df88eab
commit 1608d89174
21 changed files with 118 additions and 58 deletions

View File

@@ -22,7 +22,7 @@ define(['../internal/createCompounder'], function(createCompounder) {
*/
var camelCase = createCompounder(function(result, word, index) {
word = word.toLowerCase();
return index ? (result + word.charAt(0).toUpperCase() + word.slice(1)) : word;
return result + (index ? (word.charAt(0).toUpperCase() + word.slice(1)) : word);
});
return camelCase;