UNPKG

1.29 kBJavaScriptView Raw
1/**
2 * Copyright 2013-present, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 */
10
11'use strict';
12
13var SyntheticEvent = require('./SyntheticEvent');
14
15/**
16 * `touchHistory` isn't actually on the native event, but putting it in the
17 * interface will ensure that it is cleaned up when pooled/destroyed. The
18 * `ResponderEventPlugin` will populate it appropriately.
19 */
20var ResponderEventInterface = {
21 touchHistory: function (nativeEvent) {
22 return null; // Actually doesn't even look at the native event.
23 }
24};
25
26/**
27 * @param {object} dispatchConfig Configuration used to dispatch this event.
28 * @param {string} dispatchMarker Marker identifying the event target.
29 * @param {object} nativeEvent Native event.
30 * @extends {SyntheticEvent}
31 */
32function ResponderSyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
33 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
34}
35
36SyntheticEvent.augmentClass(ResponderSyntheticEvent, ResponderEventInterface);
37
38module.exports = ResponderSyntheticEvent;
\No newline at end of file