Last modified: 2011-07-04 11:52:21 UTC
All gadgets loaded by ResourceLoader are executed in a non-global context, causing all variables and functions declared with "var foo" or "function foo" to be local, and unusable outside that specific module.
This is a deliberate change to isolate the already-polluted global scope. If you need a specific variable to be truly global, instead of foo = 'bar' use window.foo = 'bar'. If your gadget's JS is not ResourceLoader-compliant, don't mark it with [ResourceLoader]. See: * http://www.mediawiki.org/wiki/Extension:Gadgets#ResourceLoader_support * http://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)