Go to file
Timo Tijhof 4b31b71cfc Clean up existing code and pass jshint
Coding style:
* Avoid meaningless '_' in variable names, especially when used
  inconsistently.
* Avoid trailing line comments.
* Consistent if/else curly brace position.
* Consistently use single quotes (there are no magic quotes in js).
* Consistently use $ in variable names of jQuery-wrapped elements
  (as opposed to plain node references).
* Avoid using variable names like '_this' or 'that', instead name
  them after the object.
* Too many var statements.
* Hoist var statement.
* Fix alignment of closing parentheses in initEditPage.

Code quality:
* Remove commented out code.
* Add missing radix parameter for parseInt.
* Remove unused private function "printWithRunin".
* Remove unused parameters.
* Don't call "console.log" in production client-side code because
  the console doesn't always exist in normal browser modes (and
  would result in an Uncaught ReferenceError, aborting the script
  unexpectedly and leaving the user interface in a likely
  unresponsive state).
* Use the Promise.done and Promise.fail handlers of mw.Api,
  instead of the deprecated 'ok' and 'err' parameters.
* Use jQuery#on instead of the deprecated jQuery#bind.
* Use a local shared reference to the singleton instead of relying
  on 'this' context, this way the methods can be called
  regardless of context. Such as in the $(document).ready(), or
  when passing around setErrors callback.
* Avoid using invalid html shortcuts like <div/>, use <tag>
  for creation, and <tag>..</tag> for parsing (per style guide).
* Document inputKeydown parameter being jQuery.Event (as oppposed
  to native Event).

Misc:
* Renamed '_in' to 'in', and renamed again to 'input' ('in' is an
  illegal variable name and would've crashed).

Change-Id: I283fda1409b1e76db56a939183bdaefc95e60961
2013-12-13 00:50:13 +01:00
common Tracking category for modules saved with errors 2013-12-09 12:00:16 -05:00
engines Add access to Language::fetchLanguageNames 2013-12-10 12:22:09 -05:00
modules Clean up existing code and pass jshint 2013-12-13 00:50:13 +01:00
tests/engines Expose PPFrame::getTitle to Lua 2013-12-10 04:26:03 +00:00
.gitignore Update ignores for some emacs tmp files 2013-07-25 13:11:50 -04:00
.gitreview Adding .gitreview 2012-04-06 13:46:17 -04:00
.jshintrc Add .jshintrc file 2013-12-11 00:06:41 +01:00
Scribunto.i18n.php Localisation updates from https://translatewiki.net. 2013-12-12 21:16:40 +00:00
Scribunto.magic.php Localisation updates from http://translatewiki.net. 2013-09-21 19:40:24 +00:00
Scribunto.namespaces.php Revert "(bug 54951) Add Malayalam aliases for 828 and 829" 2013-12-11 16:58:16 +00:00
Scribunto.php Use jquery.spinner when console is pending 2013-12-10 13:07:54 -05:00