UNPKG

977 BJavaScriptView Raw
1/**
2 * Copyright (c) 2013-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9'use strict';
10
11var SyntheticEvent = require('./SyntheticEvent');
12
13/**
14 * @interface Event
15 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
16 */
17var CompositionEventInterface = {
18 data: null
19};
20
21/**
22 * @param {object} dispatchConfig Configuration used to dispatch this event.
23 * @param {string} dispatchMarker Marker identifying the event target.
24 * @param {object} nativeEvent Native browser event.
25 * @extends {SyntheticUIEvent}
26 */
27function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
28 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
29}
30
31SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
32
33module.exports = SyntheticCompositionEvent;
\No newline at end of file