Last modified: 2006-07-06 23:24:29 UTC
extension). Will attach a diff with these shortly.
Also the place in the default [[MediaWiki:Monobook.js]] where the tooltip /
access key JS is declared should be updated like so:
/* tooltips and access keys */
- ta = new Object();
+ var ta = new Object();
ta['pt-userpage'] = new Array('.','My user page');
ta['pt-anonuserpage'] = new Array('.','The user page for the ip you\'re
Created attachment 2052 [details]
Wikibits var declarations
Attaching diff with var declarations as per above.
Er, what's wrong here? These are global declarations.
Omitting the var will still work; but from my understanding using var is
"The scope of a variable is the current function or, for variables declared
outside a function, the current application. Using var outside a function is
optional; assigning a value to an undeclared variable implicitly declares it as
a global variable. However, it is recommended to always use var."