Skip to content

Commit 9877831

Browse files
committed
Pass through displayName in FFI
1 parent 82ea9ee commit 9877831

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/React.js

+5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ exports.mkUI = function(ss) {
3838
var result = {};
3939
for (var s in ss) {
4040
if (ss.hasOwnProperty(s)) {
41+
if (s === "displayName") {
42+
result[s] = ss[s];
43+
}
44+
else {
4145
result[s] = (function(impl) {
4246
return function() {
4347
return impl(this)();
4448
}
4549
})(ss[s]);
50+
}
4651
}
4752
}
4853
result.getInitialState = function() {

0 commit comments

Comments
 (0)