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

webpack and JS5 strict-mode causes Error on delete of local variable in cursor plugin #196

Open
jmaino opened this issue Oct 4, 2020 · 0 comments

Comments

@jmaino
Copy link

jmaino commented Oct 4, 2020

When bundling in webpack - strict-mode is enabled.
This causes an error to occur during compilation due to attempts to delete local variables (which is not permitted in strict-mode).

This occurs on the following 2 lines of the jqplot.cursor.js plugin in the CursorLegendRenderer.prototype.draw function:

        delete series;
        delete s;

I'm w/a'ing by simply commenting out these 2 delete lines

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