mediawiki.js: Move stray lines int global scope to closure
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 30 Apr 2014 19:38:31 +0000 (21:38 +0200)
committerKrinkle <krinklemail@gmail.com>
Thu, 1 May 2014 16:11:15 +0000 (16:11 +0000)
commit758030af88dcd4e1b7d7d936b0b7e0f260e55691
tree7875f0fe4d25887f9538e4c0694957fa7bc02cc8
parent06db1a2335826d7da5da2a47ddec44a08094376d
mediawiki.js: Move stray lines int global scope to closure

There was a local variable "mw" in the (implied) global scope,
which then got assigned to "window.mw". That's a bit odd having
both.

There were also some extra lines hanging outside the closure
(where we used jQuery instead of $).

Make the local "mw" actually local and move the rest into the
closure as well.

Remove obsolete "undefined" variable reset. Per code conventions,
we don't support environments that define "undefined". Most of
our modules already don't account for this but mediawiki base
still did.

Change-Id: Iab31788cc6413d0185d868da9cce130fd4d76cde
resources/src/mediawiki/mediawiki.js