Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81155 views
1
/**
2
* Copyright 2013-2014, 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
* @providesModule SyntheticCompositionEvent
10
* @typechecks static-only
11
*/
12
13
"use strict";
14
15
var SyntheticEvent = require('SyntheticEvent');
16
17
/**
18
* @interface Event
19
* @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
20
*/
21
var CompositionEventInterface = {
22
data: null
23
};
24
25
/**
26
* @param {object} dispatchConfig Configuration used to dispatch this event.
27
* @param {string} dispatchMarker Marker identifying the event target.
28
* @param {object} nativeEvent Native browser event.
29
* @extends {SyntheticUIEvent}
30
*/
31
function SyntheticCompositionEvent(
32
dispatchConfig,
33
dispatchMarker,
34
nativeEvent) {
35
SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent);
36
}
37
38
SyntheticEvent.augmentClass(
39
SyntheticCompositionEvent,
40
CompositionEventInterface
41
);
42
43
module.exports = SyntheticCompositionEvent;
44
45
46