@@ -199,7 +199,6 @@ var ReactMultiChild = {
199
199
transaction ,
200
200
this . _mountDepth + 1
201
201
) ;
202
- child . _mountImage = mountImage ;
203
202
child . _mountIndex = index ;
204
203
mountImages . push ( mountImage ) ;
205
204
index ++ ;
@@ -346,10 +345,11 @@ var ReactMultiChild = {
346
345
* Creates a child component.
347
346
*
348
347
* @param {ReactComponent } child Component to create.
348
+ * @param {string } mountImage Markup to insert.
349
349
* @protected
350
350
*/
351
- createChild : function ( child ) {
352
- enqueueMarkup ( this . _rootNodeID , child . _mountImage , child . _mountIndex ) ;
351
+ createChild : function ( child , mountImage ) {
352
+ enqueueMarkup ( this . _rootNodeID , mountImage , child . _mountIndex ) ;
353
353
} ,
354
354
355
355
/**
@@ -391,9 +391,8 @@ var ReactMultiChild = {
391
391
transaction ,
392
392
this . _mountDepth + 1
393
393
) ;
394
- child . _mountImage = mountImage ;
395
394
child . _mountIndex = index ;
396
- this . createChild ( child ) ;
395
+ this . createChild ( child , mountImage ) ;
397
396
this . _renderedChildren = this . _renderedChildren || { } ;
398
397
this . _renderedChildren [ name ] = child ;
399
398
} ,
@@ -411,7 +410,6 @@ var ReactMultiChild = {
411
410
// TODO: When is this not true?
412
411
if ( ReactComponent . isValidComponent ( child ) ) {
413
412
this . removeChild ( child ) ;
414
- child . _mountImage = null ;
415
413
child . _mountIndex = null ;
416
414
child . unmountComponent ( ) ;
417
415
delete this . _renderedChildren [ name ] ;
0 commit comments