This repository was archived by the owner on Oct 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/java/react4j/windowportal Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ artifacts:
27
27
react4j_dom : org.realityforge.react4j:react4j-dom:jar:0.114
28
28
react4j_processor : org.realityforge.react4j:react4j-processor:jar:0.114
29
29
30
- arez_core : org.realityforge.arez:arez-core:jar:0.125
31
- arez_processor : org.realityforge.arez:arez-processor:jar:0.125
30
+ arez_core : org.realityforge.arez:arez-core:jar:0.127
31
+ arez_processor : org.realityforge.arez:arez-processor:jar:0.127
32
32
33
33
braincheck : org.realityforge.braincheck:braincheck:jar:1.12.0
Original file line number Diff line number Diff line change 1
1
package react4j .windowportal ;
2
2
3
+ import arez .annotations .PostConstruct ;
4
+ import arez .annotations .PreDispose ;
3
5
import elemental2 .dom .DomGlobal ;
4
6
import elemental2 .dom .Element ;
5
7
import elemental2 .dom .HTMLDocument ;
9
11
import jsinterop .base .Js ;
10
12
import react4j .Component ;
11
13
import react4j .ReactNode ;
12
- import react4j .annotations .PreUnmount ;
13
14
import react4j .annotations .Prop ;
14
15
import react4j .annotations .ReactComponent ;
15
16
import react4j .dom .ReactDOM ;
@@ -61,8 +62,8 @@ public interface OnCloseCallback
61
62
@ Prop
62
63
protected abstract ReactNode [] children ();
63
64
64
- @ Override
65
- protected void postConstruct ()
65
+ @ PostConstruct
66
+ final void postConstruct ()
66
67
{
67
68
_externalWindow = DomGlobal .window .open ( "" ,
68
69
windowName (),
@@ -96,8 +97,8 @@ private HTMLDocument getWindowDocument()
96
97
return Js .uncheckedCast ( Js .asPropertyMap ( _externalWindow ).get ( "document" ) );
97
98
}
98
99
99
- @ PreUnmount
100
- final void preUnmount ()
100
+ @ PreDispose
101
+ final void preDispose ()
101
102
{
102
103
assert null != _externalWindow ;
103
104
assert null != _element ;
You can’t perform that action at this time.
0 commit comments