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 | ;
|
12 |
|
13 | var 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 | */
|
20 | var 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 | */
|
32 | function ResponderSyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
33 | return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
34 | }
|
35 |
|
36 | SyntheticEvent.augmentClass(ResponderSyntheticEvent, ResponderEventInterface);
|
37 |
|
38 | module.exports = ResponderSyntheticEvent; |
\ | No newline at end of file |