Skip to content

Commit 81706ee

Browse files
nhunzakergaearon
authored andcommitted
Remove event namespace check from react-partial-renderer (#10344)
1 parent 7917709 commit 81706ee

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/renderers/shared/server/ReactPartialRenderer.js

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
'use strict';
1313

1414
var DOMMarkupOperations = require('DOMMarkupOperations');
15-
var {registrationNameModules} = require('EventPluginRegistry');
1615
var React = require('react');
1716
var ReactControlledValuePropTypes = require('ReactControlledValuePropTypes');
1817

@@ -272,27 +271,22 @@ function createOpenTagMarkup(
272271
if (propValue == null) {
273272
continue;
274273
}
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(
289281
propKey,
290282
propValue,
291283
);
292284
}
293-
if (markup) {
294-
ret += ' ' + markup;
295-
}
285+
} else {
286+
markup = DOMMarkupOperations.createMarkupForProperty(propKey, propValue);
287+
}
288+
if (markup) {
289+
ret += ' ' + markup;
296290
}
297291
}
298292

0 commit comments

Comments
 (0)