mediawiki.user: Simplify implementation and jsduckify
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 9 Jun 2013 09:21:44 +0000 (11:21 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 9 Jun 2013 09:21:44 +0000 (11:21 +0200)
commitb0bcff1f60b456483a8d0fd464c97b174d7cc961
tree725208662c6fb493e358af5473bd7808043b2ea8
parenta4ce59a4a0923c32f9fd2724ec40d186fc474f80
mediawiki.user: Simplify implementation and jsduckify

Similar to mediawiki.util:
* Return plain object instead of an instantiated function.
* Refer to local reference instead of 'this' which makes it
  possible to use all methods "detached" without needing
  a specific context bound.
* Fix documentation comments be valid in jsduck syntax.
  - @example was invalid
  - "foo String : desc" was invalid, changed to:
    "{string} foo Desc"
  - type {false} was invalid, changed to {boolean}
  - reference mw.user.foo was invalid, changed to
    mw.user#foo.
  - getUserInfo was missing @private.
* Include in JSDuck index.

Change-Id: I2732cd7422f444b5cad1c6737a2de5dafb12d541
maintenance/jsduck/categories.json
maintenance/jsduck/config.json
resources/mediawiki/mediawiki.user.js