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

reset() method and 'reset' event breaking change #157

Open
huan opened this issue Oct 14, 2021 · 0 comments
Open

reset() method and 'reset' event breaking change #157

huan opened this issue Oct 14, 2021 · 0 comments

Comments

@huan
Copy link
Member

huan commented Oct 14, 2021

In previous (v0.49-) version, the puppet reset action was triggered by the 'reset' event.

Before (v0.49-)

In order to reset the puppet, what we need to do is:

puppet.emit('reset', 'this will reset the puppet')

the puppet.reset() is protected (not public) and will not be called by the user.

After (v0.51+)

In order to reset the puppet, it's straightforward to call the reset() method (which has been changed to public)

puppet.reset('this will reset the puppet')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant