[mw.util] bug fix and minor clean up
authorKrinkle <krinkle@users.mediawiki.org>
Thu, 23 Feb 2012 00:39:15 +0000 (00:39 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Thu, 23 Feb 2012 00:39:15 +0000 (00:39 +0000)
commit06759528104220e5f3e24d61c61962e6799a3887
tree1b6ee4562951df6ddfd29981ce2aeabe1f1c71ee
parentd50d0a56da2c7264d7b75ea755bc4ed6297487ec
[mw.util] bug fix and minor clean up
* Fixes bug 34603 (Patch by Rainer <Rainer@Rillke.eu>) and other instances of the same bug
-- Use 'util' instead of 'this' to allow re-usage of the method in a different context
* Use ternary operator instead of the default operator in mw.util.wikiGetlink to check it for type instead of thruthy-ness (so that falsy-values such as '' work, and thruthy non-string values such as objects fail).
resources/mediawiki/mediawiki.util.js