(ref, component, owner)
| 13173 | var ReactRef = {}; |
| 13174 | |
| 13175 | function attachRef(ref, component, owner) { |
| 13176 | if (typeof ref === 'function') { |
| 13177 | ref(component.getPublicInstance()); |
| 13178 | } else { |
| 13179 | // Legacy ref |
| 13180 | ReactOwner.addComponentAsRefTo(component, ref, owner); |
| 13181 | } |
| 13182 | } |
| 13183 | |
| 13184 | function detachRef(ref, component, owner) { |
| 13185 | if (typeof ref === 'function') { |
no outgoing calls
no test coverage detected
searching dependent graphs…