Skip to content

Commit bafd017

Browse files
chore(attributes-to-props): destructure camelCase from utilities
1 parent 8128cd8 commit bafd017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/attributes-to-props.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var DOMProperty = require('react-dom-core/lib/DOMProperty');
22
var propertyConfig = require('./property-config');
33
var styleToObject = require('style-to-object');
44
var utilities = require('./utilities');
5+
var camelCase = utilities.camelCase;
56

67
var config = propertyConfig.config;
78
var isCustomAttribute = propertyConfig.HTMLDOMPropertyConfig.isCustomAttribute;
@@ -79,7 +80,7 @@ function cssToJs(style) {
7980
styleToObject(style, function(propName, propValue) {
8081
// Check if it's not a comment node
8182
if (propName && propValue) {
82-
styleObj[utilities.camelCase(propName)] = propValue;
83+
styleObj[camelCase(propName)] = propValue;
8384
}
8485
});
8586
return styleObj;

0 commit comments

Comments
 (0)