@@ -81,7 +81,7 @@ var ContainerMixin = merge(ReactMultiChild.Mixin, {
81
81
* @protected
82
82
*/
83
83
moveChild : function ( child , toIndex ) {
84
- var childNode = child . _mountImage ;
84
+ var childNode = this . _childNodes [ child . _rootNodeID ] ;
85
85
var mostRecentlyPlacedChild = this . _mostRecentlyPlacedChild ;
86
86
if ( mostRecentlyPlacedChild == null ) {
87
87
// I'm supposed to be first.
@@ -109,10 +109,15 @@ var ContainerMixin = merge(ReactMultiChild.Mixin, {
109
109
* Creates a child component.
110
110
*
111
111
* @param {ReactComponent } child Component to create.
112
+ * @param {object } childNode ART node to insert.
112
113
* @protected
113
114
*/
114
- createChild : function ( child ) {
115
- var childNode = child . _mountImage ;
115
+ createChild : function ( child , childNode ) {
116
+ if ( this . _childNodes == null ) {
117
+ this . _childNodes = { } ;
118
+ }
119
+ this . _childNodes [ child . _rootNodeID ] = childNode ;
120
+
116
121
var mostRecentlyPlacedChild = this . _mostRecentlyPlacedChild ;
117
122
if ( mostRecentlyPlacedChild == null ) {
118
123
// I'm supposed to be first.
@@ -139,7 +144,9 @@ var ContainerMixin = merge(ReactMultiChild.Mixin, {
139
144
* @protected
140
145
*/
141
146
removeChild : function ( child ) {
142
- child . _mountImage . eject ( ) ;
147
+ var childNode = this . _childNodes [ child . _rootNodeID ] ;
148
+ childNode . eject ( ) ;
149
+ delete this . _childNodes [ child . _rootNodeID ] ;
143
150
} ,
144
151
145
152
/**
0 commit comments