Fixed casing functionality in common.js

This commit is contained in:
murgatroid99 2015-01-16 14:22:58 -08:00
parent 23153cedbe
commit e925ff366b
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* *
*/ */
var s = require('underscore.string'); var capitalize = require('underscore.string/capitalize');
/** /**
* Get a function that deserializes a specific type of protobuf. * Get a function that deserializes a specific type of protobuf.
@ -76,7 +76,7 @@ function fullyQualifiedName(value) {
} }
var name = value.name; var name = value.name;
if (value.className === 'Service.RPCMethod') { if (value.className === 'Service.RPCMethod') {
name = s(name).capitalize().value(); name = capitalize(name);
} }
if (value.hasOwnProperty('parent')) { if (value.hasOwnProperty('parent')) {
var parent_name = fullyQualifiedName(value.parent); var parent_name = fullyQualifiedName(value.parent);