GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Supersized exposes two unnecessary global variables with very generic names: api and vars. Moreover, the api global variable is then used in the theme code to hook up to the plugin. This is a horribly bad practice (especially for a third-party plugin) and should be fixed (there should be only one entry point to the library - $.supersized).
For more information on why global variables in JS are evil, see this post: http://yuiblog.com/blog/2006/06/01/global-domination/
Same as you.I use this in wordpress,global variables take some conflict with some plugins . So I have to change those global variables ,like api ,vars,theme..., into local variables . Supersized need to do some changes to be peace with other js lib code.
Posted two years ago, and not even a hint of a suggestion that this has been considered? Shame :(