Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ButtonAPI.on returns void instead of this #36

Closed
Zyie opened this issue Jan 30, 2020 · 1 comment
Closed

ButtonAPI.on returns void instead of this #36

Zyie opened this issue Jan 30, 2020 · 1 comment
Assignees
Labels

Comments

@Zyie
Copy link

Zyie commented Jan 30, 2020

Hey, the ButtonAPI.on function returns void instead of ButtonAPI which is different from all the others.

this.box = pane.addInput(this, 'test').on('change', () =>
{
   // do something
});

this.button = pane.addButton();
this.button.on('click', () =>
{
    // do something
});
@cocopon cocopon added the bug label Jan 31, 2020
@cocopon cocopon self-assigned this Jan 31, 2020
cocopon added a commit that referenced this issue Jan 31, 2020
@cocopon
Copy link
Owner

cocopon commented Jan 31, 2020

Thank you for reporting the issue! Fixed in the latest version 1.3.2.

@cocopon cocopon closed this as completed Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants