Skip to content

Instantly share code, notes, and snippets.

@dsci
Created March 6, 2012 07:55
Show Gist options
  • Select an option

  • Save dsci/1984800 to your computer and use it in GitHub Desktop.

Select an option

Save dsci/1984800 to your computer and use it in GitHub Desktop.
overriding singletons in ExtJS4
Ext.apply(Ext.String,{
camelcase: function(str){
var splittedString = str.split("_");
return Ext.String.capitalize(splittedString[0]) + Ext.String.capitalize(splittedString[1]);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment