Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix#261 Replace vars with lets #263
All vars in price.js can be replaced with lets since they are used within the declaration scope. However, some of the variable names are exact the same for function parameters and local variables, which might cause confusion. You might want to file an issue to rename some of them.
For file purge.js, I moved variable "newamount" declaration outside the if/else block so it can be declared with let.
In conclusion, the fix replaced all vars with lets. Only two files price.js and purge.js are involved. There is no "var" left in any file. Let me know if any issues or further changes needed.