algoliasearch-client-javascript icon indicating copy to clipboard operation
algoliasearch-client-javascript copied to clipboard

Wrapper and namespace

Open fulmicoton opened this issue 13 years ago • 1 comments

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.

fulmicoton avatar May 28 '13 23:05 fulmicoton

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

speedblue avatar May 29 '13 06:05 speedblue