Skip to content

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

@huan

Description

@huan

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')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions