[Core JS] Applying conventions to mw.util
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 21 Dec 2011 22:06:02 +0000 (22:06 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 21 Dec 2011 22:06:02 +0000 (22:06 +0000)
commit4dba5d43a18540d9e6963a5d23b7e9561d7661f4
treee19267342e7ac482c14b1341ecbbc5ec35ab0547
parent29a6b9e7139a24b5b6ebe0b50c2df7e737078eb2
[Core JS] Applying conventions to mw.util
- new recommended closure format
- fixing repeated var statements, or var statement inside blocks (there is no block scope in JavaScript) and moving them to the top of the function
- line breaking, indention, white space
- and more.. see also https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript
resources/mediawiki/mediawiki.util.js