Returning back to old MainBrwsr, as TeaVM does not honor the new invention of class's invoke
1.1 --- a/minesweeper/pom.xml Fri Oct 31 23:46:16 2014 +0100
1.2 +++ b/minesweeper/pom.xml Fri Oct 31 23:49:53 2014 +0100
1.3 @@ -431,7 +431,7 @@
1.4 <minifying>false</minifying>
1.5 <properties>
1.6 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
1.7 - <html4j.entryPoints>org.apidesign.demo.minesweeper.MinesModel</html4j.entryPoints>
1.8 + <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
1.9 </properties>
1.10 <!-- Don't include main page - we created it by ourselves -->
1.11 <mainPageIncluded>false</mainPageIncluded>
2.1 --- a/minesweeper/src/main/webapp/pages/index.html Fri Oct 31 23:46:16 2014 +0100
2.2 +++ b/minesweeper/src/main/webapp/pages/index.html Fri Oct 31 23:49:53 2014 +0100
2.3 @@ -236,8 +236,8 @@
2.4 <script type="text/javascript" src="bck2brwsr.js"></script>
2.5 <script>
2.6 var vm = bck2brwsr('minesweeper.js');
2.7 - var c = vm.loadClass('org.apidesign.demo.minesweeper.MinesModel');
2.8 - c.invoke('main');
2.9 + var c = vm.loadClass('org.apidesign.demo.minesweeper.MainBrwsr');
2.10 +// c.invoke('main');
2.11 </script>
2.12
2.13 </body>