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.
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 usesuntyped __js__
calls.