haxeui / haxeui-heaps

MIT License
31 stars 12 forks source link

Script doesn't work #23

Closed CrazyFlasher closed 3 years ago

CrazyFlasher commented 3 years ago

Using this sample https://github.com/haxeui/component-examples/tree/master/buttons

http://188.166.108.195/testui/ - build

Clicking “Add button” doesn’t do anything, except console log:

haxe/ui/core/Component.hx:1394: Problem executing scriptlet: EUnknownVariable(add)

Took latest git of heaps, haxeui-code and haxeui-heaps Build script:

-cp src
-main Main

-lib haxeui-core
-lib haxeui-heaps
-lib heaps

-js build/html5/Main.js
ianharrigan commented 3 years ago

Hmmm, yeah, i can reproduce it... dont quite get it though as the "add" function is certainly there in the script...

ianharrigan commented 3 years ago

Whats even more strange is it seems this is a heaps only issue - same app works fine on other backends... its almost as if heaps "strips" the script part... which doesnt make any sense

ianharrigan commented 3 years ago

This should be fixed now in latest haxeui-heaps (might want to grab core too anyway)... there was actually a bug with the initialsation order in haxeui-heaps that caused this... Long story short, the component was saying "im ready" too early

If that works for you, can you close this?

Cheers, Ian

CrazyFlasher commented 3 years ago

It works now, thank you!