Created
August 5, 2012 00:38
-
-
Save elijahmanor/3260856 to your computer and use it in GitHub Desktop.
CSS Property to DOM Style Property
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
| function cssPropertyToDomStyleProperty( name ) { | |
| return name.replace( /-(\w)/g, function(match, group) { | |
| return group.toUpperCase(); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment