Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README: fix withMarkup() example
Browse files Browse the repository at this point in the history
joshtynjala authored Dec 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fa94641 commit bffcdde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -58,10 +58,7 @@ var instance = XmlComponent.withMarkup(
</f:LayoutGroup>'
);
container.addChild(instance);
var okButton = cast(instance.getChildAt(0));
//alternatively, use var okButton = XmlComponent.withMarkup('<f:Button xmlns:f="http://ns.feathersui.com/xml" id="okButton" text="OK"/>');
//then add it to instance
okButton.addEventListener(TriggerEvent.TRIGGER, (event) -> {
instance.okButton.addEventListener(TriggerEvent.TRIGGER, (event) -> {
trace("triggered the OK button");
});
```

1 comment on commit bffcdde

@ConfidantCommunications
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that works even better! :)

Please sign in to comment.