ianharrigan / haxeui

IMPORTANT NOTE! This repository is no longer maintained. Please consider the newer version: https://github.com/haxeui/haxeui-core
http://haxeui.org/
392 stars 47 forks source link

Update ScriptManager.hx #358

Closed sebthom closed 7 years ago

sebthom commented 7 years ago

a) Workaround for https://github.com/HaxeFoundation/hxcpp/issues/489 which crashes HaxeUI apps if a dash - is used within CSS attribute fields: HaxeUIApp.hx:151: Exception uncaughtError: Null Object Reference at DocumentClass.new (ApplicationMain.hx:214) at Type.createInstance (Type.hx:83) at ApplicationMain.main (ApplicationMain.hx:116)

b) prevent unnecessary creation of new String object on each script execution.