(node)
| 3178 | } |
| 3179 | |
| 3180 | function updateValueIfChanged(node) { |
| 3181 | if (!node) { |
| 3182 | return false; |
| 3183 | } |
| 3184 | |
| 3185 | var tracker = getTracker(node); |
| 3186 | // if there is no tracker at this point it's unlikely |
| 3187 | // that trying again will succeed |
| 3188 | if (!tracker) { |
| 3189 | return true; |
| 3190 | } |
| 3191 | |
| 3192 | var lastValue = tracker.getValue(); |
| 3193 | var nextValue = getValueFromNode(node); |
| 3194 | if (nextValue !== lastValue) { |
| 3195 | tracker.setValue(nextValue); |
| 3196 | return true; |
| 3197 | } |
| 3198 | return false; |
| 3199 | } |
| 3200 | |
| 3201 | var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 3202 |
no test coverage detected