UNPKG

955 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
11/**
12 * Module that is injectable into `EventPluginHub`, that specifies a
13 * deterministic ordering of `EventPlugin`s. A convenient way to reason about
14 * plugins, without having to package every one of them. This is better than
15 * having plugins be ordered in the same order that they are injected because
16 * that ordering would be influenced by the packaging order.
17 * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
18 * preventing default on events is convenient in `SimpleEventPlugin` handlers.
19 */
20
21var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
22
23module.exports = DefaultEventPluginOrder;
\No newline at end of file