Returning back to old MainBrwsr, as TeaVM does not honor the new invention of class's invoke teavm
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 31 Oct 2014 23:49:53 +0100
branchteavm
changeset 2210c3b47231206
parent 220 35d0118c1490
child 232 ea742dce43b4
Returning back to old MainBrwsr, as TeaVM does not honor the new invention of class's invoke
minesweeper/pom.xml
minesweeper/src/main/webapp/pages/index.html
     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>