Files
react/src/renderers/dom/shared/ReactDOMInjection.js
T
Dan Abramov 2dcdc3c633 Simplify environment injections (#10175)
* Remove unnecessary injection guard

* Remove inject() indirection for global injections

It was necessary when they shared global state. But now these are flat bundles so we can inject as side effect.
This feels a bit less convoluted to me.

Ideally we can get rid of this somehow soon.
2017-07-13 20:44:52 +01:00

22 lines
797 B
JavaScript

/**
* Copyright 2013-present, 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 ReactDOMInjection
*/
'use strict';
var ARIADOMPropertyConfig = require('ARIADOMPropertyConfig');
var DOMProperty = require('DOMProperty');
var HTMLDOMPropertyConfig = require('HTMLDOMPropertyConfig');
var SVGDOMPropertyConfig = require('SVGDOMPropertyConfig');
DOMProperty.injection.injectDOMPropertyConfig(ARIADOMPropertyConfig);
DOMProperty.injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
DOMProperty.injection.injectDOMPropertyConfig(SVGDOMPropertyConfig);