1 | 'use strict';
|
2 |
|
3 | var bindAutoBindMethods = require('./bindAutoBindMethods');
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | function deepForceUpdate(component) {
|
11 | if (component._instance) {
|
12 |
|
13 | component = component._instance;
|
14 | }
|
15 |
|
16 | bindAutoBindMethods(component);
|
17 |
|
18 | if (component.forceUpdate) {
|
19 | component.forceUpdate();
|
20 | }
|
21 |
|
22 | if (component._renderedComponent) {
|
23 | deepForceUpdate(component._renderedComponent);
|
24 | }
|
25 |
|
26 | for (var key in component._renderedChildren) {
|
27 | deepForceUpdate(component._renderedChildren[key]);
|
28 | }
|
29 | }
|
30 |
|
31 | module.exports = deepForceUpdate; |
\ | No newline at end of file |