mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
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:
parent
4c8e92e0fb
commit
ea0b95be05
|
@ -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 );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue