bendmorris / spinehaxe

Spine runtime for Haxe 3. Based on current AS3/libgdx runtimes.
Other
64 stars 28 forks source link

Fix Std.is() deprecation warnings with Haxe 4.2 #37

Closed Gama11 closed 4 years ago

Gama11 commented 4 years ago

Std.is() has been deprecated in Haxe 4.2: https://github.com/HaxeFoundation/haxe/commit/8ef3be1ae80fe4361572100fe7988518bc59c9ed

Rather than using Std.isOfType(), it's cleaner to use the is syntax with mandatory parens if possible - it's already available since Haxe 3.4, so it doesn't require conditional compilation (I doubt anybody is still using Haxe versions older than that).