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

unregisterHelper destroy references #350

Open
rottmann opened this issue Jun 24, 2019 · 0 comments
Open

unregisterHelper destroy references #350

rottmann opened this issue Jun 24, 2019 · 0 comments

Comments

@rottmann
Copy link

Registering all helpers, render and unregister all helpers work.
Registering all helpers again is not possible, all handlebars-helpers references are deleted.

const helpers = require('handlebars-helpers')
let handlebarsHelpers = helpers() // object with all helpers

// ... register, render, unregister ...

handlebarsHelpers = helpers() // results an empty object `{}` after unregister.
´´´

Handlebars 4.1.2

Would be cleaner not to autoregister the helpers, or provide an unregister method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant