@samitouri / QOS-React / commits / 81706eeb7a

Remove event namespace check from react-partial-renderer (#10344)

Nathan Hunzaker committed Aug 2, 2017 at 06:30 UTC 81706eeb7a51c1cea7fd8e66733a4f4618155ef5
1 file changed +12 -18
src/renderers/shared/server/ReactPartialRenderer.js
+12 -18
@@ -12,7 +12,6 @@
12 'use strict';
13
14 var DOMMarkupOperations = require('DOMMarkupOperations');
15 -var {registrationNameModules} = require('EventPluginRegistry');
15 var React = require('react');
16 var ReactControlledValuePropTypes = require('ReactControlledValuePropTypes');
17
@@ -272,27 +271,22 @@ function createOpenTagMarkup(
271 if (propValue == null) {
272 continue;
273 }
275 - if (!registrationNameModules.hasOwnProperty(propKey)) {
276 - if (propKey === STYLE) {
277 - propValue = createMarkupForStyles(propValue, instForDebug);
278 - }
279 - var markup = null;
280 - if (isCustomComponent(tagLowercase, props)) {
281 - if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
282 - markup = DOMMarkupOperations.createMarkupForCustomAttribute(
283 - propKey,
284 - propValue,
285 - );
286 - }
287 - } else {
288 - markup = DOMMarkupOperations.createMarkupForProperty(
274 + if (propKey === STYLE) {
275 + propValue = createMarkupForStyles(propValue, instForDebug);
276 + }
277 + var markup = null;
278 + if (isCustomComponent(tagLowercase, props)) {
279 + if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
280 + markup = DOMMarkupOperations.createMarkupForCustomAttribute(
281 propKey,
282 propValue,
283 );
284 }
293 - if (markup) {
294 - ret += ' ' + markup;
295 - }
285 + } else {
286 + markup = DOMMarkupOperations.createMarkupForProperty(propKey, propValue);
287 + }
288 + if (markup) {
289 + ret += ' ' + markup;
290 }
291 }
292