mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
Followup 00af434
: only tear down debug bar if it exists
Bug: 66692 Change-Id: I3ec8cf9579da785327abbab5dd3618bb3f20895f
This commit is contained in:
parent
00af43495b
commit
ee1bea701e
|
@ -1383,10 +1383,12 @@ ve.init.mw.ViewPageTarget.prototype.tearDownToolbar = function () {
|
|||
* @method
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.tearDownDebugBar = function () {
|
||||
this.debugBar.$element.slideUp( 'fast', ve.bind( function () {
|
||||
this.debugBar.$element.remove();
|
||||
this.debugBar = null;
|
||||
}, this ) );
|
||||
if ( this.debugBar ) {
|
||||
this.debugBar.$element.slideUp( 'fast', ve.bind( function () {
|
||||
this.debugBar.$element.remove();
|
||||
this.debugBar = null;
|
||||
}, this ) );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue