Notalib/LYT — Issue #63: Wrap everything in a closure to avoid polluting the global namespace
Author: Flambino
Created: 2011-12-21 21:48:27+00:00
State: open
Labels: code improvement, feature

When in full production mode, it would be best, if the codebase's impact on the global namespace is kept to a minimum.

Right now, almost everything is namespaced to the `LYT` object (except for utility functions and error constants - see issue #14). However, everything could conceivably be wrapped in a closure, and thus _never_ touch the global namespace.

This would require quite a few changes, and it only makes sense if all the files are concatenated to a single .js file. It also makes debugging more difficult, so it would be something that's only used in the production code.