(node)
| 3050 | } |
| 3051 | |
| 3052 | function updateValueIfChanged(node) { |
| 3053 | if (!node) { |
| 3054 | return false; |
| 3055 | } |
| 3056 | |
| 3057 | var tracker = getTracker(node); |
| 3058 | // if there is no tracker at this point it's unlikely |
| 3059 | // that trying again will succeed |
| 3060 | if (!tracker) { |
| 3061 | return true; |
| 3062 | } |
| 3063 | |
| 3064 | var lastValue = tracker.getValue(); |
| 3065 | var nextValue = getValueFromNode(node); |
| 3066 | if (nextValue !== lastValue) { |
| 3067 | tracker.setValue(nextValue); |
| 3068 | return true; |
| 3069 | } |
| 3070 | return false; |
| 3071 | } |
| 3072 | |
| 3073 | var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 3074 |
no test coverage detected