HaxeFoundation / hx3compat

Haxe 3 compatibility lib for Haxe 4
MIT License
16 stars 16 forks source link

[haxe.web.Dispatch] Configuration entry should be a function #17

Open filt3rek opened 4 years ago

filt3rek commented 4 years ago

Hej !

I get this compilte-time error "Configuration entry should be a function", just because I've a simple field named "documents", so it takes the "do" as an API function. I solved this by adding that into the ifstatement : || ( f.name.substr( 2, 1 ) != null && f.name.substr( 2, 1 ) == f.name.substr( 2, 1 ).toLowerCase() ) here : https://github.com/HaxeFoundation/hx3compat/blob/91edf63bfd82d0d110a51c96028905b962c7968e/std/haxe/web/Dispatch.hx#L397