hovzer.$.append( this.$container );
hovzer.update();
- $( '.mw-debug-panelink' ).click( this.switchPane );
+ $( '.mw-debug-panelink' ).on( 'click', this.switchPane );
},
/**
// Hide the current pane
if ( requestedPaneId === currentPaneId ) {
+ // FIXME: Use CSS transition
+ // eslint-disable-next-line jquery/no-slide
$currentPane.slideUp( updateHov );
debug.$container.data( 'currentPane', null );
return;
debug.$container.data( 'currentPane', requestedPaneId );
if ( currentPaneId === undefined || currentPaneId === null ) {
+ // FIXME: Use CSS transition
+ // eslint-disable-next-line jquery/no-slide
$requestedPane.slideDown( updateHov );
} else {
$currentPane.hide();
.append( $( '<td>' ).text( i + 1 ) )
.append( $( '<td>' ).text( query.sql ) )
.append( $( '<td>' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ).addClass( 'stats' ) )
- .append( $( '<td>' ).text( query[ 'function' ] ) )
+ .append( $( '<td>' ).text( query.function ) )
.appendTo( $table );
}