(node)
| 3955 | } |
| 3956 | |
| 3957 | function updateValueIfChanged(node) { |
| 3958 | if (!node) { |
| 3959 | return false; |
| 3960 | } |
| 3961 | |
| 3962 | var tracker = getTracker(node); |
| 3963 | // if there is no tracker at this point it's unlikely |
| 3964 | // that trying again will succeed |
| 3965 | if (!tracker) { |
| 3966 | return true; |
| 3967 | } |
| 3968 | |
| 3969 | var lastValue = tracker.getValue(); |
| 3970 | var nextValue = getValueFromNode(node); |
| 3971 | if (nextValue !== lastValue) { |
| 3972 | tracker.setValue(nextValue); |
| 3973 | return true; |
| 3974 | } |
| 3975 | return false; |
| 3976 | } |
| 3977 | |
| 3978 | var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 3979 |
no test coverage detected