UNPKG

1.23 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 SyntheticEvent = require('./SyntheticEvent');
14
15/**
16 * @interface Event
17 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
18 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
19 */
20var TransitionEventInterface = {
21 propertyName: null,
22 elapsedTime: null,
23 pseudoElement: null
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 browser event.
30 * @extends {SyntheticEvent}
31 */
32function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
33 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
34}
35
36SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
37
38module.exports = SyntheticTransitionEvent;
\No newline at end of file