Get rid of remaining ReactID references
It's gone. Also compacted a bit of code to match the other usage.
Paul O'Shannessy committed
Aug 1, 2013 at 13:57 UTC
99d3d7f914636ec093b7f04a07252f1776b039ce
1 file changed
+4
-6
src/core/ReactMultiChild.js
+4
-6
@@ -200,11 +200,9 @@ var ReactMultiChild = {
200
for (var name in children) {
201
var child = children[name];
202
if (children.hasOwnProperty(name) && child) {
203
- var mountImage = child.mountComponent(
204
- // Inlined for performance, see `ReactInstanceHandles.createReactID`.
205
- this._rootNodeID + '.' + name,
206
- transaction
207
- );
203
+ // Inlined for performance, see `ReactInstanceHandles.createReactID`.
204
+ var rootID = this._rootNodeID + '.' + name;
205
+ var mountImage = child.mountComponent(rootID, transaction);
206
child._mountImage = mountImage;
207
child._mountIndex = index;
208
mountImages.push(mountImage);
@@ -395,7 +393,7 @@ var ReactMultiChild = {
393
* @private
394
*/
395
_mountChildByNameAtIndex: function(child, name, index, transaction) {
398
- // Inlined for performance, see `ReactID.createReactID`.
396
+ // Inlined for performance, see `ReactInstanceHandles.createReactID`.
397
var rootID = this._rootNodeID + '.' + name;
398
var mountImage = child.mountComponent(rootID, transaction);
399
child._mountImage = mountImage;