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

Variable total Undefined #14

Open
winniethemu opened this issue Jun 18, 2016 · 1 comment
Open

Variable total Undefined #14

winniethemu opened this issue Jun 18, 2016 · 1 comment

Comments

@winniethemu
Copy link

winniethemu commented Jun 18, 2016

The variable total at line 35 is currently initialized without being declared first, therefore causing a variable undefined error when the script is minified.

A fix would simply be changing total = 0 to var total = 0;

Thanks.

@lsascha
Copy link

lsascha commented Sep 7, 2017

Same issue here. But even when i pipe it through webpack without minimizing the javascript.
adding the var before total solved it.

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

2 participants