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

Swing is not defined #8

Closed
ghost opened this issue Nov 15, 2014 · 2 comments
Closed

Swing is not defined #8

ghost opened this issue Nov 15, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 15, 2014

Latest release, Swing is not defined but gajus.Swing is?

@gajus
Copy link
Owner

gajus commented Nov 15, 2014

Swing does not pollute the window namespace. All libraries that I have developed are exposed under window.gajus.<module name>. This applies to the builds. There is no namespace if you are using ./src/ with a package builder such as Browserify (because there is no risk of polluting the global namespace). If you'd like to ditch "gajus" namespace, then just reassign it to whatever variable, e.g.

var Swing = gajus.Swing;

@ghost
Copy link
Author

ghost commented Nov 15, 2014

@gajus ok becuase in the quick start example in readme , you are using Swing instead of gajus.Swing.

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