UNPKG

944 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 SyntheticUIEvent = require('./SyntheticUIEvent');
12
13/**
14 * @interface FocusEvent
15 * @see http://www.w3.org/TR/DOM-Level-3-Events/
16 */
17var FocusEventInterface = {
18 relatedTarget: 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 SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
28 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
29}
30
31SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
32
33module.exports = SyntheticFocusEvent;
\No newline at end of file