| 1 | mw.editcheck.EditCheckAction = function MWEditCheckAction( config ) { |
| 2 | this.check = config.check; |
| 3 | this.highlight = config.highlight; |
| 4 | this.selection = config.selection; |
| 5 | this.message = config.message; |
| 6 | }; |
| 7 | |
| 8 | OO.initClass( mw.editcheck.EditCheckAction ); |
| 9 | |
| 10 | mw.editcheck.EditCheckAction.prototype.getChoices = function () { |
| 11 | return this.check.getChoices( this ); |
| 12 | }; |
| 13 | |
| 14 | mw.editcheck.EditCheckAction.prototype.getDescription = function () { |
| 15 | return this.check.getDescription( this ); |
| 16 | }; |