mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-21 02:22:51 +00:00
EditCheckDialog: Reset currentChecks on setup
Change-Id: Iaf0fb4122f5c7168f55e73beaf9c69add1912ae3
This commit is contained in:
parent
79adf3f934
commit
e9c7503c72
|
@ -66,6 +66,7 @@ ve.ui.EditCheckDialog.prototype.initialize = function () {
|
|||
} );
|
||||
|
||||
this.currentOffset = 0;
|
||||
this.currentChecks = null;
|
||||
|
||||
this.footerLabel = new OO.ui.LabelWidget();
|
||||
this.previousButton = new OO.ui.ButtonWidget( {
|
||||
|
@ -245,6 +246,7 @@ ve.ui.EditCheckDialog.prototype.getSetupProcess = function ( data ) {
|
|||
return ve.ui.EditCheckDialog.super.prototype.getSetupProcess.call( this, data )
|
||||
.first( () => {
|
||||
this.currentOffset = 0;
|
||||
this.currentChecks = null;
|
||||
this.listener = data.listener || 'onDocumentChange';
|
||||
this.reviewMode = data.reviewMode;
|
||||
this.surface = data.surface;
|
||||
|
|
Loading…
Reference in a new issue