Skip to content

Commit cbe6f58

Browse files
committed
Merge pull request #47 from robkuz/patch-1
fix inline styling error
2 parents 0d54027 + 53f52e1 commit cbe6f58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/React/DOM/Props.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ exports.unsafeMkProps = function(key) {
1414
exports.unsafeUnfoldProps = function(key) {
1515
return function(value) {
1616
var result = {};
17+
var props = {};
18+
props[key] = result;
1719

1820
for (var subprop in value) {
1921
if (value.hasOwnProperty(subprop)) {
20-
result[key + '-' + subprop] = value[subprop];
22+
result[subprop] = value[subprop];
2123
}
2224
}
2325

24-
return result;
26+
return props;
2527
};
2628
};

0 commit comments

Comments
 (0)