Renamed componentInstance to publicComponentInstance
Bradley Spaulding committed
Sep 24, 2015 at 11:46 UTC
8b4663d722fc50f602c762ce75881faad3619b83
1 file changed
+3
-3
src/renderers/shared/reconciler/ReactCompositeComponent.js
+3
-3
@@ -808,10 +808,10 @@ var ReactCompositeComponentMixin = {
808
attachRef: function(ref, component) {
809
var inst = this.getPublicInstance();
810
invariant(inst != null, 'Stateless function components cannot have refs.');
811
- var componentInstance = component.getPublicInstance();
812
- invariant(componentInstance != null, 'Stateless function components cannot be given refs.');
811
+ var publicComponentInstance = component.getPublicInstance();
812
+ invariant(publicComponentInstance != null, 'Stateless function components cannot be given refs.');
813
var refs = inst.refs === emptyObject ? (inst.refs = {}) : inst.refs;
814
- refs[ref] = componentInstance;
814
+ refs[ref] = publicComponentInstance;
815
},
816
817
/**