Created
March 6, 2012 07:55
-
-
Save dsci/1984800 to your computer and use it in GitHub Desktop.
overriding singletons in ExtJS4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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