JavaScript clean-up (Code conventions, cross-browser fixes and JSHint validation)
; history.js
* Applied whitespace conventions + removed trailing whitespace
* Combining var statements
; mediawiki.action.history.js
* Calling in document.ready instead of directly (jQuery(fn) is short for jQuery(document).ready(fn))
** Originally it was a hookEvent('load'), during rewrite in r74397 it was dropped. Restoring now.
* Wrapping in jQuery-to-$
* Combining document.ready and wrapper into one (jQuery internally calls the ready-fn with jQuery as first argument) ($(function(){ $(function(){ /* domready */ })(jQuery); --> jQuery( function( $ ) { /* domready */ } );
* (http://jqbug.com/8229) Attributes must be quoted, just like CSS requires that.
; mediawiki.action.view.rightClickEdit.js
* Wrapping in jQuery-to-$
; IEFixes.js
* Moving function calls within the if statement since the passed arguments are undefined otherwise