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

wrap all JS code in its own namespace #133

Open
skariel opened this issue Jan 26, 2014 · 0 comments
Open

wrap all JS code in its own namespace #133

skariel opened this issue Jan 26, 2014 · 0 comments

Comments

@skariel
Copy link
Owner

skariel commented Jan 26, 2014

All the javascript should be wrapped in its own "namespace" (javascript object) - so to avoid collision with other people's javascript

ie. put everything (global functions, global variables) inside WebAlchemy object, possibly with alias for a short symbol ("W" ? )

like jquery wraps everything inside jQuery with alias "$"
jquery also allows changing to another alias in order to to avoid collision with other javascript that uses the "$" variable - see http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

see issue #100

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

1 participant