From b636a924efd31e08db48b18c48ba9e519129dc19 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Wed, 9 Mar 2016 19:30:24 +0900 Subject: [PATCH] Add a warning for adding properties into ResponderSyntheticEvent This is a additional work for #5947. --- .../shared/event/eventPlugins/ResponderSyntheticEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js b/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js index ca2b8ecfe7170..f1cf77feacfcc 100644 --- a/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js +++ b/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js @@ -31,7 +31,7 @@ var ResponderEventInterface = { * @extends {SyntheticEvent} */ function ResponderSyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); + return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticEvent.augmentClass(ResponderSyntheticEvent, ResponderEventInterface);