(node)
| 4068 | } |
| 4069 | |
| 4070 | function updateValueIfChanged(node) { |
| 4071 | if (!node) { |
| 4072 | return false; |
| 4073 | } |
| 4074 | |
| 4075 | var tracker = getTracker(node); |
| 4076 | // if there is no tracker at this point it's unlikely |
| 4077 | // that trying again will succeed |
| 4078 | if (!tracker) { |
| 4079 | return true; |
| 4080 | } |
| 4081 | |
| 4082 | var lastValue = tracker.getValue(); |
| 4083 | var nextValue = getValueFromNode(node); |
| 4084 | if (nextValue !== lastValue) { |
| 4085 | tracker.setValue(nextValue); |
| 4086 | return true; |
| 4087 | } |
| 4088 | return false; |
| 4089 | } |
| 4090 | |
| 4091 | var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 4092 |
no test coverage detected