Skip to content

Commit 5c4902c

Browse files
authored
Merge pull request #278 from andrewgouin/patch-1
Underscore event props
2 parents 0506739 + beaef3c commit 5c4902c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/lib/String.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
value: true
1818
});
1919
var camelize = exports.camelize = function camelize(str) {
20-
return str.split(' ').map(function (word) {
20+
return str.split('_').map(function (word) {
2121
return word.charAt(0).toUpperCase() + word.slice(1);
2222
}).join('');
2323
};
24-
});
24+
});

src/lib/String.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const camelize = function(str) {
2-
return str.split(' ').map(function(word) {
2+
return str.split('_').map(function(word) {
33
return word.charAt(0).toUpperCase() + word.slice(1);
44
}).join('');
55
}

0 commit comments

Comments
 (0)