Manually clear out session storage on teardown

We used to rely on this happening in onInputChange but
that listener is now detached.

Bug: T252176
Change-Id: I6654d68dc6107cd78172c455db9cba6cb9eabddf
This commit is contained in:
Ed Sanders 2020-05-08 23:01:17 +01:00
parent 4c8e92e0fb
commit ea0b95be05

View file

@ -90,6 +90,9 @@ ReplyWidgetPlain.prototype.setup = function () {
ReplyWidgetPlain.prototype.teardown = function () {
this.replyBodyWidget.off( 'change' );
this.storage.remove( this.storagePrefix + '/class' );
this.storage.remove( this.storagePrefix + '/body' );
// Parent method
return ReplyWidgetPlain.super.prototype.teardown.call( this );
};