mediawiki-extensions-Visual.../editcheck/modules/EditCheckAction.js
David Lynch d69d366469 Edit check API
Change-Id: Ic5504eb2fe8d1d3f22e88abe1dd88790bdfd8b9c
2024-06-12 11:01:04 +01:00

17 lines
478 B
JavaScript

mw.editcheck.EditCheckAction = function MWEditCheckAction( config ) {
this.check = config.check;
this.highlight = config.highlight;
this.selection = config.selection;
this.message = config.message;
};
OO.initClass( mw.editcheck.EditCheckAction );
mw.editcheck.EditCheckAction.prototype.getChoices = function () {
return this.check.getChoices( this );
};
mw.editcheck.EditCheckAction.prototype.getDescription = function () {
return this.check.getDescription( this );
};