MCPcopy Create free account
hub / github.com/ReactJSResources/react-webpack-babel / inject

Function inject

public/bundle.js:21290–21374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21288 }
21289
21290 function inject() {
21291 ReactInjection.EventEmitter.injectReactEventListener(
21292 ReactEventListener
21293 );
21294
21295 /**
21296 * Inject modules for resolving DOM hierarchy and plugin ordering.
21297 */
21298 ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);
21299 ReactInjection.EventPluginHub.injectInstanceHandle(ReactInstanceHandles);
21300 ReactInjection.EventPluginHub.injectMount(ReactMount);
21301
21302 /**
21303 * Some important event plugins included by default (without having to require
21304 * them).
21305 */
21306 ReactInjection.EventPluginHub.injectEventPluginsByName({
21307 SimpleEventPlugin: SimpleEventPlugin,
21308 EnterLeaveEventPlugin: EnterLeaveEventPlugin,
21309 ChangeEventPlugin: ChangeEventPlugin,
21310 MobileSafariClickEventPlugin: MobileSafariClickEventPlugin,
21311 SelectEventPlugin: SelectEventPlugin,
21312 BeforeInputEventPlugin: BeforeInputEventPlugin
21313 });
21314
21315 ReactInjection.NativeComponent.injectGenericComponentClass(
21316 ReactDOMComponent
21317 );
21318
21319 ReactInjection.NativeComponent.injectTextComponentClass(
21320 ReactDOMTextComponent
21321 );
21322
21323 ReactInjection.NativeComponent.injectAutoWrapper(
21324 autoGenerateWrapperClass
21325 );
21326
21327 // This needs to happen before createFullPageComponent() otherwise the mixin
21328 // won't be included.
21329 ReactInjection.Class.injectMixin(ReactBrowserComponentMixin);
21330
21331 ReactInjection.NativeComponent.injectComponentClasses({
21332 'button': ReactDOMButton,
21333 'form': ReactDOMForm,
21334 'iframe': ReactDOMIframe,
21335 'img': ReactDOMImg,
21336 'input': ReactDOMInput,
21337 'option': ReactDOMOption,
21338 'select': ReactDOMSelect,
21339 'textarea': ReactDOMTextarea,
21340
21341 'html': createFullPageComponent('html'),
21342 'head': createFullPageComponent('head'),
21343 'body': createFullPageComponent('body')
21344 });
21345
21346 ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
21347 ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);

Callers

nothing calls this directly

Calls 2

createFullPageComponentFunction · 0.85
__webpack_require__Function · 0.85

Tested by

no test coverage detected