Fix the capitalize

This commit is contained in:
Raymond Feng 2013-05-21 14:54:14 -07:00
parent 0022edb774
commit aebd7de68c
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ function capitalize(str) {
if (!str) {
return str;
}
return str.charAt(0).toUpperCase() + (str.length > 1) ? str.slice(1).toLowerCase() : '';
return str.charAt(0).toUpperCase() + ((str.length > 1) ? str.slice(1).toLowerCase() : '');
}
function fromDBName(dbName, camelCase) {