mediawiki.notification: Refactor $.ready handler and init()
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 4 Oct 2017 20:10:57 +0000 (21:10 +0100)
committerJforrester <jforrester@wikimedia.org>
Wed, 4 Oct 2017 21:38:16 +0000 (21:38 +0000)
commit1653400c2f2e8dc941b2f1e81eebeb2587ca2d22
tree4b1c2f091a024a8299f0d2476460380650c51241
parent0a1d26210c379774b481a82e1c4ab5135906ec8e
mediawiki.notification: Refactor $.ready handler and init()

* Merge code from $.ready handler into init().
  This makes it more obvious in which order the code runs, and
  makes it easier to make perf fixes in the next commit.

* Move updateAreaMode() to the start of the init() function.

Change-Id: I088446e17c2dc8ed88742bfeae80352444126e88
resources/src/mediawiki/mediawiki.notification.js