From 6858c7120c333cb15f9973e27456e830a0083941 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 15 Jul 2015 15:36:55 +0200 Subject: [PATCH] Remove AnalyticsEventPlugin We only ever had a couple internal users of this, and now we have none. Removing it from the repo for cleanliness. --- .../AnalyticsEventPluginFactory.js | 226 ------------------ .../eventPlugins/DefaultEventPluginOrder.js | 1 - .../__tests__/AnalyticsEventPlugin-test.js | 144 ----------- 3 files changed, 371 deletions(-) delete mode 100644 src/renderers/dom/client/eventPlugins/AnalyticsEventPluginFactory.js delete mode 100644 src/renderers/dom/client/eventPlugins/__tests__/AnalyticsEventPlugin-test.js diff --git a/src/renderers/dom/client/eventPlugins/AnalyticsEventPluginFactory.js b/src/renderers/dom/client/eventPlugins/AnalyticsEventPluginFactory.js deleted file mode 100644 index d1a5714531fe..000000000000 --- a/src/renderers/dom/client/eventPlugins/AnalyticsEventPluginFactory.js +++ /dev/null @@ -1,226 +0,0 @@ -/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule AnalyticsEventPluginFactory - * - * This module provides a factory method to create the AnalyticsEventPlugin that - * can be used to track the usage of React components that are of interest to - * the user. - * - * In order to enable a component for analytics tracking, you need to specify - * two additional attributes to the component when you describe the structure of - * your component in the render() method: - * - * 1. 'data-analytics-id': This represents a unique ID that the analytics module - * will use to identify this component in all the analytics data. Note that - * this is independent of the ref or the DOM id of the element. Over the - * lifetime of the product, even if the component id or ref needs to be - * changed, as long as you can ensure the analytics ID doesnt change, the - * historical data can be correlated. Also note that React does NOT do - * anything to guarantee or enforce uniqueness of this ID. If its not unique - * the analytics data reported will be incorrect. - * - * 2. 'data-analytics-events': This is a comma separated list of DOM events that - * you want analytics on. React currently supports tracking only on a - * distinct set of events (See topLevelTypesToAnalyticsEvent). - * If the list contains an event that React does not recognize for analytics - * tracking, in __DEV__, an error will be thrown. Note that it is case - * sensitive and space sensitive. - * - * By default the AnalyticsEventPlugin is NOT enabled in React. To use it, you - * need to create the plugin using the factory method and add it to the list of - * Plugins maintained in the EventPluginHub before your component is rendered. - * As creation parameters you can specify two arguments: - * - * 1. callback: This is a required parameter. In __DEV__, an error will be - * thrown if this param is missing. The callback will be called with the - * analyticsData as an argument. The analyticsData will contain one property - * per every React component, identified by its data-analytics-id. The value - * of this property will be an object containing properties corresponding to - * each of the comma separated events specified in data-analytics-events. - * - * For example, if you have: - *