|
@@ -10,7 +10,10 @@ class ContainerWrapper {
|
10
|
10
|
super(props);
|
11
|
11
|
this._saveContainerRef = this._saveContainerRef.bind(this);
|
12
|
12
|
this._assertContainerId(props);
|
13
|
|
- this._createState(props);
|
|
13
|
+ this.state = {
|
|
14
|
+ containerId: props.containerId,
|
|
15
|
+ allProps: _.merge({}, props, store.getPropsForContainerId(props.containerId))
|
|
16
|
+ };
|
14
|
17
|
}
|
15
|
18
|
|
16
|
19
|
_assertContainerId(props) {
|
|
@@ -19,13 +22,6 @@ class ContainerWrapper {
|
19
|
22
|
}
|
20
|
23
|
}
|
21
|
24
|
|
22
|
|
- _createState(props) {
|
23
|
|
- this.state = {
|
24
|
|
- containerId: props.containerId,
|
25
|
|
- allProps: _.merge({}, props, store.getPropsForContainerId(props.containerId))
|
26
|
|
- };
|
27
|
|
- }
|
28
|
|
-
|
29
|
25
|
_saveContainerRef(r) {
|
30
|
26
|
this.originalContainerRef = r;
|
31
|
27
|
}
|