Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80536 views
1
/**
2
* Copyright 2013-2015, 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
* @providesModule DefaultEventPluginOrder
10
*/
11
12
'use strict';
13
14
var keyOf = require("./keyOf");
15
16
/**
17
* Module that is injectable into `EventPluginHub`, that specifies a
18
* deterministic ordering of `EventPlugin`s. A convenient way to reason about
19
* plugins, without having to package every one of them. This is better than
20
* having plugins be ordered in the same order that they are injected because
21
* that ordering would be influenced by the packaging order.
22
* `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
23
* preventing default on events is convenient in `SimpleEventPlugin` handlers.
24
*/
25
var DefaultEventPluginOrder = [
26
keyOf({ResponderEventPlugin: null}),
27
keyOf({SimpleEventPlugin: null}),
28
keyOf({TapEventPlugin: null}),
29
keyOf({EnterLeaveEventPlugin: null}),
30
keyOf({ChangeEventPlugin: null}),
31
keyOf({SelectEventPlugin: null}),
32
keyOf({BeforeInputEventPlugin: null}),
33
keyOf({AnalyticsEventPlugin: null}),
34
keyOf({MobileSafariClickEventPlugin: null})
35
];
36
37
module.exports = DefaultEventPluginOrder;
38
39