* @since 1.19
*/
-( function ( $, mw, undefined ) {
-"use strict";
+( function ( mw, $ ) {
+ 'use strict';
- var hovzer = $.getFootHovzer();
+ var debug,
+ hovzer = $.getFootHovzer();
- var debug = mw.Debug = {
+ debug = mw.Debug = {
/**
* Toolbar container element
*
paneTriggerBitDiv( 'includes', 'PHP includes', this.data.includes.length );
var gitInfo = '';
- if ( this.data.gitRevision != false ) {
+ if ( this.data.gitRevision !== false ) {
gitInfo = '(' + this.data.gitRevision.substring( 0, 7 ) + ')';
- if ( this.data.gitViewUrl != false ) {
- gitInfo = $( '<a></a>' ).attr( 'href', this.data.gitViewUrl ).text( gitInfo );
+ if ( this.data.gitViewUrl !== false ) {
+ gitInfo = $( '<a>' ).attr( 'href', this.data.gitViewUrl ).text( gitInfo );
}
}
.append( ': ' + this.data.mwVersion + ' ' )
.append( gitInfo );
- if ( this.data.gitBranch != false ) {
+ if ( this.data.gitBranch !== false ) {
bitDiv( 'gitbranch' ).text( 'Git branch: ' + this.data.gitBranch );
}
$table = $( '<table id="mw-debug-console">' );
- $('<colgroup>').css( 'width', /*padding=*/20 + ( 10*/*fontSize*/11 ) ).appendTo( $table );
+ $('<colgroup>').css( 'width', /*padding=*/20 + ( 10 * /*fontSize*/11 ) ).appendTo( $table );
$('<colgroup>').appendTo( $table );
$('<colgroup>').css( 'width', 350 ).appendTo( $table );
}
};
-} )( jQuery, mediaWiki );
+}( mediaWiki, jQuery ) );