Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unprefixed animation/transition events #19493

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 4 additions & 13 deletions packages/react-dom/src/events/DOMTopLevelEventTypes.js
Expand Up @@ -13,7 +13,6 @@ import {
unsafeCastStringToDOMTopLevelType,
unsafeCastDOMTopLevelTypeToString,
} from '../events/TopLevelEventTypes';
import getVendorPrefixedEventName from './getVendorPrefixedEventName';

/**
* To identify top level events in ReactDOM, we use constants defined by this
Expand All @@ -23,15 +22,9 @@ import getVendorPrefixedEventName from './getVendorPrefixedEventName';
* The rest of ReactDOM code should import top level types from this file.
*/
export const TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
export const TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(
getVendorPrefixedEventName('animationend'),
);
export const TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(
getVendorPrefixedEventName('animationiteration'),
);
export const TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(
getVendorPrefixedEventName('animationstart'),
);
export const TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType('animationend');
export const TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType('animationiteration');
export const TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType('animationstart');
export const TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
export const TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType(
'canplaythrough',
Expand Down Expand Up @@ -138,9 +131,7 @@ export const TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType(
export const TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
export const TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
export const TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
export const TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(
getVendorPrefixedEventName('transitionend'),
);
export const TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType('transitionend');
export const TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType(
'volumechange',
);
Expand Down
93 changes: 0 additions & 93 deletions packages/react-dom/src/events/getVendorPrefixedEventName.js

This file was deleted.