mediawiki.js: Minor clean up of comments and code
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 5 Dec 2013 23:24:13 +0000 (00:24 +0100)
committerOri.livneh <ori@wikimedia.org>
Thu, 12 Dec 2013 04:46:33 +0000 (04:46 +0000)
commit2eafc7a36eff0eb285598d4ce8688e1ab207154b
tree0be89a587e3bbd6ce21b084996012177ce6338c7
parent66abb4b620438fec1953e969c0a70ca8748747b6
mediawiki.js: Minor clean up of comments and code

* Put ternary on one line or separated over 3 lines.
* Whitepace inside parentheses (e.g. catch statement).
* Avoid trailing line comments.
* Capitalise description of parameters for consistency and to
  have it better stand apart from the variable name.
* Phrase primary method block description as a single line
  in the imperative mood.
* Avoid shortened urls inside documentation.
  (updated Modernizr ref to a release instead of git hash).
* Using store.enabled as boolean (null being falsey).
* Merge subsequent if-statements having the same logical purpose
  and body.

Change-Id: Ia1db9e54d528b2799187d80d2e3e22e31f74fb6b
resources/mediawiki/mediawiki.js