-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lots of redeclared variables in the Spectrogram plugin #1138
Comments
Well, it's not a Javascript error. |
It's still a good thing to fix, as it doesn't make sense to redeclare variables |
Sometimes, though, it is better to declare variables twice, for purposes of clarity... for example:
Of course you can just declare |
(Although here arguably they probably shouldn't be there, and the last one is a straight up ???). |
Perhaps, but in this case it's var a = a || 1 which does not make sense unless a is already declared |
Yeah the last one is confusing. |
There are no good reasons for these redeclarations. |
Ok, ye. I agree in this case...
|
@akreal
These are the errors I'm getting at the current master:
The text was updated successfully, but these errors were encountered: