Skip to content

Commit

Permalink
expose all events (when appropriate flag is set)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Feb 8, 2024
1 parent aaf535f commit 55f6448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haxe/ui/macros/Macros.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class Macros {

macro static function buildEvent():Array<Field> {
var builder = new ClassBuilder(Context.getBuildFields(), Context.getLocalType(), Context.currentPos());
#if haxeui_expose_all
builder.addMeta(":expose");
#end

#if macro_times_verbose
var stopComponentTimer = Context.timer(builder.fullPath);
Expand Down

0 comments on commit 55f6448

Please sign in to comment.