Skip to content

Commit 89035f0

Browse files
committed
Update to not use _mountImage
See facebook/react#852.
1 parent 3329e04 commit 89035f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ReactART.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ var ContainerMixin = merge(ReactMultiChild.Mixin, {
109109
* Creates a child component.
110110
*
111111
* @param {ReactComponent} child Component to create.
112+
* @param {object} childNode ART node to insert.
112113
* @protected
113114
*/
114-
createChild: function(child) {
115-
var childNode = child._mountImage;
115+
createChild: function(child, childNode) {
116+
child._mountImage = childNode;
116117
var mostRecentlyPlacedChild = this._mostRecentlyPlacedChild;
117118
if (mostRecentlyPlacedChild == null) {
118119
// I'm supposed to be first.
@@ -140,6 +141,7 @@ var ContainerMixin = merge(ReactMultiChild.Mixin, {
140141
*/
141142
removeChild: function(child) {
142143
child._mountImage.eject();
144+
delete child._mountImage;
143145
},
144146

145147
/**

0 commit comments

Comments
 (0)