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

Destroying the workflow causes the zoom plugin to crash #35

Open
multimeric opened this issue Feb 1, 2018 · 0 comments
Open

Destroying the workflow causes the zoom plugin to crash #35

multimeric opened this issue Feb 1, 2018 · 0 comments
Assignees
Labels

Comments

@multimeric
Copy link

If you run the following code twice, with a workflow that uses the ZoomPlugin, a JavaScript error will occur and the workflow will fail to render.

workflow.destroy();
workflow.draw(model);

The error is:

zoom.js:45 Uncaught TypeError: this.dispose is not a function
    at ZoomPlugin.destroy (zoom.js:45)
    at workflow.js:403
    at Array.forEach (<anonymous>)
    at Workflow.invokePlugins (workflow.js:401)
    at Workflow.destroy (workflow.js:323)
    at HTMLInputElement.<anonymous> (index.js:29)

A minimal example of this behaviour can be found here: https://github.com/TMiguelT/CwlSvgZoomBug

@ivanbatic ivanbatic self-assigned this Feb 5, 2018
@ivanbatic ivanbatic added the bug label Feb 5, 2018
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