I am creating a javascript library and want to bake it in different dependencies (e.g. jQuery, Google Closure, etc.) without polluting the global namespace. This is especially important because others may already be using different versions of these libraries.
As far as I can tell, most of these libraries are attached directly to the object window, so I cannot just put them in an anonymous function.
Are there general solutions to this problem?
source
share