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

simple constructors #1

Closed 0b1kn00b closed 10 years ago

0b1kn00b commented 10 years ago

I haven't tested exactly, but it looks right. You can do an

import hxdom.DomTools.*

and then the constructors will be available in the global scope

var html = eHtml();

and so forth.

hexonaut commented 10 years ago

Really this is just wrapping the .create() call. It is a little redundant in my opinion, and so I'm not going to include it. Thanks for the contribution though.