File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed
src/renderers/shared/server Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change 12
12
'use strict' ;
13
13
14
14
var DOMMarkupOperations = require ( 'DOMMarkupOperations' ) ;
15
- var { registrationNameModules} = require ( 'EventPluginRegistry' ) ;
16
15
var React = require ( 'react' ) ;
17
16
var ReactControlledValuePropTypes = require ( 'ReactControlledValuePropTypes' ) ;
18
17
@@ -272,27 +271,22 @@ function createOpenTagMarkup(
272
271
if ( propValue == null ) {
273
272
continue ;
274
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 (
289
281
propKey ,
290
282
propValue ,
291
283
) ;
292
284
}
293
- if ( markup ) {
294
- ret += ' ' + markup ;
295
- }
285
+ } else {
286
+ markup = DOMMarkupOperations . createMarkupForProperty ( propKey , propValue ) ;
287
+ }
288
+ if ( markup ) {
289
+ ret += ' ' + markup ;
296
290
}
297
291
}
298
292
You can’t perform that action at this time.
0 commit comments