Hi!
I was wondering whether it would be good to move the JavaScript wg* variables to the mw object (more exactly: to mw.page). That means wgCanonicalNamspace to mw.page.canonicalNamespace etc. I thought of this because I read that new functionality should only be added to this object and not to wg* variables [1].
So, what do you think? Would it be a good idea to move these variables? (Of course, the old variables had to remain, too, as we cannot expect to change all the scripts depending on this for one update.)
If you’d agree, I’d like to try this and write the necessary code, ok?
Regards, Robin
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=23104
Hi Robin,
This might be a topic better suited to wikitech-l mailing list.
-Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Ireas Sent: Tuesday, April 13, 2010 4:34 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] JavaScript / mw object
Hi!
I was wondering whether it would be good to move the JavaScript wg* variables to the mw object (more exactly: to mw.page). That means wgCanonicalNamspace to mw.page.canonicalNamespace etc. I thought of this because I read that new functionality should only be added to this object and not to wg* variables [1].
So, what do you think? Would it be a good idea to move these variables? (Of course, the old variables had to remain, too, as we cannot expect to change all the scripts depending on this for one update.)
If you'd agree, I'd like to try this and write the necessary code, ok?
Regards, Robin
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=23104
mediawiki-l@lists.wikimedia.org