[Mediawiki-l] JavaScript / mw object

Ireas ireas at rkrahl.de
Tue Apr 13 20:34:06 UTC 2010


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

-- 
Wikipedia-Benutzer Ireas / Robin Krahl <ireas at rkrahl.de>
http://de.wikipedia.org/wiki/Benutzer:Ireas
http://rkrahl.de

plain text & open source ftw!



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20100413/dff52ac9/attachment.pgp 


More information about the MediaWiki-l mailing list