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

Wrapper and namespace #1

Closed
fulmicoton opened this issue May 28, 2013 · 1 comment
Closed

Wrapper and namespace #1

fulmicoton opened this issue May 28, 2013 · 1 comment

Comments

@fulmicoton
Copy link

It seems like the AlgoliaSearch object is the only public API and that
AlgoliaUtils_* are just internal functions.

If this is the case, algoliasearch might benefits from a (function() {...})() wrapper in order to avoid global namespace pollution.

In addition, AlgoliaUtils_stringifyParamValues does not actually seems to be called anywhere.

@speedblue
Copy link
Member

You are right, I removed AlgoliaUtils_stringifyParamValues and removed all functions in global namespace.
Thanks for the comment.

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

2 participants