demos/Collage/fabric.js
function camelize(string) {
  return string.replace(/-+(.)?/g, function(match, character) {
    return character ? character.toUpperCase() : '';
  });
}
function camelize(string) {
  return string.replace(/-+(.)?/g, function(match, character) {
    return character ? character.toUpperCase() : '';
  });
}
function camelize ( string ) { return string . replace ( / -+(.)? / g , function ( match , character ) { return character ? character . toUpperCase ( ) : '' ; } ) ; }
Camelizes a string
@memberOf fabric.util.string
@method camelize
@param {String} string String to camelize
@return {String} Camelized version of a string
Camelizes a string