ciscoheat / mithril-hx

Haxe externs for Mithril (JS MVC framework)
181 stars 12 forks source link

Convert `untyped __js__` calls to `js.Syntax.code` #36

Closed hamaluik closed 4 years ago

hamaluik commented 4 years ago

Haxe 4.1.0 deprecated untyped __js__(code, args) calls (https://haxe.org/download/version/4.1.0/), which means using this library with newer versions of the Haxe compiler spits out a ton of annoying warnings.

The changes in this commit remain backwards compatible with Haxe 3 (which did not have the js.Syntax type), in that case the library still uses untyped __js__ calls.

ciscoheat commented 4 years ago

Thank you very much! Will merge and update the haxelib immediately.