Skip to content

Commit 181db5b

Browse files
committed
Add a warning for adding properties into ResponderSyntheticEvent
This is a additional work for facebook#5947.
1 parent f9a08b0 commit 181db5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var ResponderEventInterface = {
3131
* @extends {SyntheticEvent}
3232
*/
3333
function ResponderSyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
34-
SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
34+
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
3535
}
3636

3737
SyntheticEvent.augmentClass(ResponderSyntheticEvent, ResponderEventInterface);

0 commit comments

Comments
 (0)