Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Getting rid of globals #3

Closed
technomancy opened this issue Sep 18, 2016 · 2 comments
Closed

Getting rid of globals #3

technomancy opened this issue Sep 18, 2016 · 2 comments

Comments

@technomancy
Copy link
Contributor

It's rather difficult to follow some of the functionality in the codebase due to the heavy usage of globals.

Cleaning up things to use modules would make it much easier to follow. I may be able to submit a patch for this if you are interested. I have had good luck using luacheck to find globals: https://github.com/mpeterv/luacheck

@technomancy
Copy link
Contributor Author

technomancy commented Sep 18, 2016

The problem here is that it would be very likely to conflict with other edits, so maybe we should coordinate about which files to do before beginning.

@Rami-Sabbagh
Copy link
Collaborator

Fixed in 3c21965 , Carts still have the api as globals (to save code length)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants