hexonaut / haxe-dom

A cross-platform implementation of the DOM. Built to reduce duplicate code across server and client.
MIT License
46 stars 4 forks source link

init on the client documentation #22

Closed erixtekila closed 9 years ago

erixtekila commented 9 years ago

Would you provide more insight about the way to init haze-dom on the client, please.

Init on client (JavaScript):
var page = hxdom.js.Boot();

Is it haxe js client code ? Because I can't use Boot without being instantiated

package ;

class MainClient
{
    public static function main()
    {
        var app = new MainClient();
    }

    public function new( )
    {
        var page = hxdom.js.Boot();//<-- trouble
    }
}

Or what javascript dependency should I add ?

<!DOCTYPE html>
<html>
  <head>
    <title></title>
  </head>
  <body>
<!-- Something missing -->
  <script>var page = hxdom.js.Boot();</script>
  </body>
</html>
erixtekila commented 9 years ago

Sorry, I didn't look at https://github.com/Blank101/haxe-dom/blob/master/test/Test.hx

hexonaut commented 9 years ago

Oops typo. :P

Thanks for pointing this out. I've fixed in README.