We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
camelCase
utilities
1 parent 8128cd8 commit bafd017Copy full SHA for bafd017
lib/attributes-to-props.js
@@ -2,6 +2,7 @@ var DOMProperty = require('react-dom-core/lib/DOMProperty');
2
var propertyConfig = require('./property-config');
3
var styleToObject = require('style-to-object');
4
var utilities = require('./utilities');
5
+var camelCase = utilities.camelCase;
6
7
var config = propertyConfig.config;
8
var isCustomAttribute = propertyConfig.HTMLDOMPropertyConfig.isCustomAttribute;
@@ -79,7 +80,7 @@ function cssToJs(style) {
79
80
styleToObject(style, function(propName, propValue) {
81
// Check if it's not a comment node
82
if (propName && propValue) {
- styleObj[utilities.camelCase(propName)] = propValue;
83
+ styleObj[camelCase(propName)] = propValue;
84
}
85
});
86
return styleObj;
0 commit comments