UNPKG

1.07 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 SyntheticUIEvent = require('./SyntheticUIEvent');
14
15/**
16 * @interface FocusEvent
17 * @see http://www.w3.org/TR/DOM-Level-3-Events/
18 */
19var FocusEventInterface = {
20 relatedTarget: null
21};
22
23/**
24 * @param {object} dispatchConfig Configuration used to dispatch this event.
25 * @param {string} dispatchMarker Marker identifying the event target.
26 * @param {object} nativeEvent Native browser event.
27 * @extends {SyntheticUIEvent}
28 */
29function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
30 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
31}
32
33SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
34
35module.exports = SyntheticFocusEvent;
\No newline at end of file